fixes file saving &
code format
This commit is contained in:
parent
7b14144193
commit
be9889be59
3 changed files with 12 additions and 12 deletions
|
|
@ -153,9 +153,7 @@ namespace Yavsc.Services
|
|||
buffer = new byte[Constants.WebSocketsMaxBufLen+16];
|
||||
sBuffer = new ArraySegment<byte>(buffer);
|
||||
received = await liveHandler.Socket.ReceiveAsync(sBuffer, liveHandler.TokenSource.Token);
|
||||
|
||||
count = (received.Count<4)? 0 : buffer[0]*256*1024 +buffer[1]*1024+buffer[2]*256 + buffer[3];
|
||||
|
||||
_logger.LogInformation($"Received bytes : {count}");
|
||||
_logger.LogInformation($"Is the end : {received.EndOfMessage}");
|
||||
if (received.Count<=4 || count > Constants.WebSocketsMaxBufLen) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue