Corrected problems

This commit is contained in:
Tristan B. Kildaire 2020-12-04 18:56:56 +02:00
parent a236409034
commit 3a528ad2cc
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ public bool receiveMessage(Socket originator, ref byte[] receiveMessage)
messageLength = *cast(int*)swappedLength.ptr;
}
/* Reset buffer */
receiveBuffer.length = cast(uint)messageLength;
/* Full message buffer Reset buffer */
byte[] fullMessage;
/* Reset the byte counter */
currentByte = 0;