#Client Network Manager Shutting Down Shuts Down Host Session?

1 messages · Page 1 of 1 (latest)

hushed wasp
#

I am not quite sure what exactly is happening, but whenever I call this script with the commented out part not commented out, I get error messages from vivox on the host that the channel is no longer active. I do not understand why the client leaving causes the host to leave. When I have the line commented out as shown, there are various issues with despawning the player and joining servers after that.

#

For what I can find of the unity sample, my code should look more like this:

fiery forge
#

Yea, shutting down the network manager will also shutdown the session

#

If you want to keep Vivox active after leaving the game, I think the easiest way is to have multiple sessions. One for the group party chat and then another for match

hushed wasp
fiery forge
#

Oh that's not supposed to happen

#

Make sure LeaveLobby() is not getting called on the host.

#

Also you don't have to destroy player objects manually. All network objects will get cleaned up when the network shuts down

hushed wasp
#

The code that is running this is not a networkbehaviour, so I am checking the code on those rn to see if I somehow accidentally ctrl+c crtl+v 'd somewhere

fiery forge
#

It might be getting called from the player object. Or is somehow getting triggered when a client disconnects

hushed wasp
#

lol I think I found it

#

I wasn't checking if it was the owner before using the code

#

Just tested, that was it