mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
look at close status before assuming socket is closed.
This commit is contained in:
parent
088c77674b
commit
a36873f890
1 changed files with 2 additions and 2 deletions
|
|
@ -120,9 +120,9 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|||
|
||||
var result = await WebSocket.ReceiveAsync(buffer, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (result.CloseStatus.HasValue)
|
||||
if (result.CloseStatus.HasValue && result.CloseStatus.Value != WebSocketCloseStatus.Empty)
|
||||
{
|
||||
_logger.Info("Web socket connection closed by client.");
|
||||
_logger.Info("Web socket connection closed by client. Reason: {0}", result.CloseStatus.Value);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue