mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-14 00:22:24 +00:00
update shutdown
This commit is contained in:
@@ -179,6 +179,11 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
|
||||
private void OnWebSocketConnecting(WebSocketConnectingEventArgs args)
|
||||
{
|
||||
if (_disposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (WebSocketConnecting != null)
|
||||
{
|
||||
WebSocketConnecting(this, args);
|
||||
@@ -187,6 +192,11 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
|
||||
private void OnWebSocketConnected(WebSocketConnectEventArgs args)
|
||||
{
|
||||
if (_disposed)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (WebSocketConnected != null)
|
||||
{
|
||||
WebSocketConnected(this, args);
|
||||
@@ -331,6 +341,13 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
|
||||
var httpRes = httpReq.Response;
|
||||
|
||||
if (_disposed)
|
||||
{
|
||||
httpRes.StatusCode = 503;
|
||||
httpRes.Close();
|
||||
return Task.FromResult(true);
|
||||
}
|
||||
|
||||
var operationName = httpReq.OperationName;
|
||||
var localPath = url.LocalPath;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user