mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkClient.Shutdown calls Client.Disconnect as suggested in #923
This commit is contained in:
parent
260cb49698
commit
49d93d814c
@ -460,6 +460,11 @@ public static void Shutdown()
|
||||
ClientScene.Shutdown();
|
||||
connectState = ConnectState.None;
|
||||
handlers.Clear();
|
||||
// disconnect the client connection.
|
||||
// we do NOT call Transport.Shutdown, because someone only called
|
||||
// NetworkClient.Shutdown. we can't assume that the server is
|
||||
// supposed to be shut down too!
|
||||
Transport.activeTransport.ClientDisconnect();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user