NetworkConnection.Disconnect: no need to check connected first

This commit is contained in:
vis2k 2018-08-17 14:03:00 +02:00
parent 777232f5e0
commit bafd9d1b28

View File

@ -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();
}