Feature/player list #9

Merged
SemvdH merged 10 commits from feature/playerList into master 2020-10-23 10:53:43 +00:00
Showing only changes of commit 7fcf424b65 - Show all commits

View File

@@ -59,7 +59,6 @@ namespace Server.Models
throw new OutOfMemoryException("buffer is too small!");
}
ar.AsyncWaitHandle.WaitOne();
// copy the received bytes into the buffer
Array.Copy(buffer, 0, totalBuffer, totalBufferReceived, bytesReceived);
@@ -92,6 +91,8 @@ namespace Server.Models
}
ar.AsyncWaitHandle.WaitOne();
// start reading for a new message
stream.BeginRead(buffer, 0, buffer.Length, new AsyncCallback(OnRead), null);
}