From 74b297819be0f492da10db6ae03f675c4a3e016c Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 26 Feb 2019 16:57:19 +0100 Subject: [PATCH] NetworkServer: remove unnecessary check because hostId is set to 0 one line before that --- Assets/Mirror/Runtime/NetworkServer.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index aceffa216..c1dcc1774 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -95,12 +95,6 @@ public static bool Listen(int maxConnections) { NetworkManager.singleton.transport.ServerStart(); serverHostId = 0; // so it doesn't return false - - if (serverHostId == -1) - { - return false; - } - if (LogFilter.Debug) { Debug.Log("Server started listening"); } }