Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

Unity crashing when calling on StopHost or DropConnection

$
0
0
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?

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>