mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-07 21:55:42 +12:00
Fix hi1
This commit is contained in:
parent
452a8ad60f
commit
b75121b54f
1 changed files with 11 additions and 2 deletions
|
@ -124,7 +124,16 @@ namespace HISP.Server
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
// HI1 Packets are terminates by 0x00 so we have to read until we receive that terminator
|
// HI1 Packets are terminates by 0x00 so we have to read until we receive that terminator
|
||||||
ClientSocket.Poll(0, SelectMode.SelectRead);
|
|
||||||
|
if (isDisconnecting || ClientSocket == null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if(ClientSocket.Poll(0, SelectMode.SelectRead))
|
||||||
|
{
|
||||||
|
Disconnect();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!ClientSocket.Connected)
|
if (!ClientSocket.Connected)
|
||||||
{
|
{
|
||||||
Disconnect();
|
Disconnect();
|
||||||
|
@ -153,7 +162,7 @@ namespace HISP.Server
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isDisconnecting)
|
if (isDisconnecting || ClientSocket == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue