mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-24 22:48:56 +02:00
Try another fix
This commit is contained in:
parent
6e07eab247
commit
5262e50fee
|
@ -171,17 +171,13 @@ namespace Jellyfin.Server.SocketSharp
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_logger.LogWarning("Web socket connection not allowed");
|
_logger.LogWarning("Web socket connection not allowed");
|
||||||
statusCode = 401;
|
TryClose(ctx, 401);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
_logger.LogError(ex, "AcceptWebSocketAsync error");
|
_logger.LogError(ex, "AcceptWebSocketAsync error");
|
||||||
statusCode = 500;
|
TryClose(ctx, 500);
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
TryClose(ctx, statusCode);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue