diff --git a/HorseIsleServer/LibHISP/Server/GameClient.cs b/HorseIsleServer/LibHISP/Server/GameClient.cs index 75c7feb..2a3870c 100755 --- a/HorseIsleServer/LibHISP/Server/GameClient.cs +++ b/HorseIsleServer/LibHISP/Server/GameClient.cs @@ -122,7 +122,7 @@ namespace HISP.Server { try { - while (!GameServer.ServerSocket.AcceptAsync(e)) + do { Socket eSocket = e.AcceptSocket; @@ -137,7 +137,7 @@ namespace HISP.Server if (GameServer.ServerSocket == null) return; - } + } while (!GameServer.ServerSocket.AcceptAsync(e)); } catch (ObjectDisposedException ex) { Logger.ErrorPrint("Server shutdown due to " + ex.Message); } // server shutdown }