mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Try another fix
This commit is contained in:
parent
6e07eab247
commit
5262e50fee
1 changed files with 2 additions and 6 deletions
|
@ -171,17 +171,13 @@ namespace Jellyfin.Server.SocketSharp
|
|||
else
|
||||
{
|
||||
_logger.LogWarning("Web socket connection not allowed");
|
||||
statusCode = 401;
|
||||
TryClose(ctx, 401);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.LogError(ex, "AcceptWebSocketAsync error");
|
||||
statusCode = 500;
|
||||
}
|
||||
finally
|
||||
{
|
||||
TryClose(ctx, statusCode);
|
||||
TryClose(ctx, 500);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue