Browse Source

Call SharpWebSocket's Closed event handler before disposing

Claus Vium 6 năm trước cách đây
mục cha
commit
1ac282b12e
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Emby.Server.Implementations/SocketSharp/SharpWebSocket.cs

+ 1 - 0
Emby.Server.Implementations/SocketSharp/SharpWebSocket.cs

@@ -90,6 +90,7 @@ namespace Emby.Server.Implementations.SocketSharp
                     _webSocket.CloseAsync(WebSocketCloseStatus.NormalClosure, "Closed by client",
                         CancellationToken.None);
                 }
+                Closed?.Invoke(this, EventArgs.Empty);
             }
 
             _disposed = true;