works kinda

This commit is contained in:
fabjuuuh
2020-10-19 16:13:51 +02:00
parent 2adfcc5bd7
commit aa5ea7a3e0
3 changed files with 30 additions and 7 deletions

View File

@@ -129,7 +129,7 @@ namespace DoctorApp.Utils
{
MainViewModel.TransferDataToClientBPM(payloadbytes);
}
Array.Copy(totalBuffer, expectedMessageLength, totalBuffer, 0, (totalBufferReceived - expectedMessageLength)); //maybe unsafe idk
totalBufferReceived -= expectedMessageLength;
expectedMessageLength = BitConverter.ToInt32(totalBuffer, 0);
}