From bafd9d1b2812cabd6eed336b27edde66431d1b94 Mon Sep 17 00:00:00 2001 From: vis2k Date: Fri, 17 Aug 2018 14:03:00 +0200 Subject: [PATCH] NetworkConnection.Disconnect: no need to check connected first --- Unity-Technologies-networking/Runtime/NetworkConnection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unity-Technologies-networking/Runtime/NetworkConnection.cs b/Unity-Technologies-networking/Runtime/NetworkConnection.cs index ae8aab12b..c8b7a8728 100644 --- a/Unity-Technologies-networking/Runtime/NetworkConnection.cs +++ b/Unity-Technologies-networking/Runtime/NetworkConnection.cs @@ -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(); }