Merge pull request #3984 from crobibero/json-prerelease

Use Prerelease System.Text.Json
This commit is contained in:
Bond-009
2020-08-26 18:59:46 +02:00
committed by GitHub
19 changed files with 42 additions and 437 deletions

View File

@@ -179,7 +179,7 @@ namespace Emby.Server.Implementations.HttpServer
return;
}
WebSocketMessage<object> stub;
WebSocketMessage<object>? stub;
try
{
@@ -209,6 +209,12 @@ namespace Emby.Server.Implementations.HttpServer
return;
}
if (stub == null)
{
_logger.LogError("Error processing web socket message");
return;
}
// Tell the PipeReader how much of the buffer we have consumed
reader.AdvanceTo(buffer.End);