mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-22 20:55:52 +12:00
Fix crash when player leaves
This commit is contained in:
parent
ed721b362e
commit
4b48db6b2a
5 changed files with 13 additions and 9 deletions
|
@ -117,8 +117,12 @@ namespace HISP.Server
|
|||
do
|
||||
{
|
||||
Socket eSocket = e.AcceptSocket;
|
||||
if(eSocket != null)
|
||||
new GameClient(eSocket);
|
||||
if (eSocket == null)
|
||||
return;
|
||||
if (eSocket.RemoteEndPoint == null)
|
||||
return;
|
||||
|
||||
new GameClient(eSocket);
|
||||
e.AcceptSocket = null;
|
||||
|
||||
if(GameServer.ServerSocket == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue