Small fix

This commit is contained in:
MaxXor 2015-08-27 20:59:03 +02:00
parent 5ba266f3a0
commit a9e8eca086
1 changed files with 2 additions and 2 deletions

View File

@ -317,7 +317,7 @@ private void AsyncReceive(IAsyncResult result)
if (bytesTransferred <= 0)
{
OnClientState(false);
Disconnect();
return;
}
}
@ -331,7 +331,7 @@ private void AsyncReceive(IAsyncResult result)
}
catch (Exception)
{
OnClientState(false);
Disconnect();
return;
}