[ADDITION] added a wait one to the client onread

This commit is contained in:
Dogukan
2020-10-22 16:36:00 +02:00
parent b8d0f206ba
commit 8190d9b31b

View File

@@ -76,6 +76,7 @@ namespace Client
expectedMessageLength = BitConverter.ToInt32(totalBuffer, 0);
}
ar.AsyncWaitHandle.WaitOne();
stream.BeginRead(buffer, 0, buffer.Length, new AsyncCallback(OnReadComplete), null);
}