mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
Maybe fix stuff
This commit is contained in:
parent
98fc5aede3
commit
369989ad59
1 changed files with 3 additions and 1 deletions
|
@ -87,9 +87,11 @@ namespace HISP.Server
|
||||||
|
|
||||||
public static void CreateClient(object sender, SocketAsyncEventArgs e)
|
public static void CreateClient(object sender, SocketAsyncEventArgs e)
|
||||||
{
|
{
|
||||||
|
restart:;
|
||||||
Socket eSocket = e.AcceptSocket;
|
Socket eSocket = e.AcceptSocket;
|
||||||
e.AcceptSocket = null;
|
e.AcceptSocket = null;
|
||||||
GameServer.ServerSocket.AcceptAsync(e);
|
if (!GameServer.ServerSocket.AcceptAsync(e))
|
||||||
|
goto restart;
|
||||||
|
|
||||||
new GameClient(eSocket);
|
new GameClient(eSocket);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue