From f15b37fd085f1eb43500734732cefd1beacece1c Mon Sep 17 00:00:00 2001 From: Li Date: Fri, 11 Nov 2022 19:49:26 +1300 Subject: [PATCH] Fix socket thingy --- HorseIsleServer/LibHISP/Server/GameClient.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }