mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkConnection.Disconnect: no need to check connected first
This commit is contained in:
parent
777232f5e0
commit
bafd9d1b28
@ -84,7 +84,7 @@ public void Disconnect()
|
||||
}
|
||||
|
||||
Debug.Log("NetworkConnection.Disconnect calls NetworkTransport.Disconnect");
|
||||
if (Transport.client.Connected) Transport.client.Disconnect();
|
||||
Transport.client.Disconnect();
|
||||
|
||||
RemoveObservers();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user