Helly everybody,
I’m trying to make my player disconnect from a match. It’s a 1v1 match and if the player disconnect I want to close the connection.
When a player disconnects:
[server side] Works great, the player disconnects and returns to the lobby. [client side] Unity Editor Crashes or my application collapses (stop responding).
I’m trying to do the following on the client:
` if (networkIdentity.isClient)
{
MatchInfo currentMatch = networkManager.matchInfo;
networkManager.matchMaker.DropConnection(currentMatch.networkId, currentMatch.nodeId, 0, networkManager.OnDropConnection);
networkManager.StopHost();
}`
Am I missing something?