소스 검색

Call SharpWebSocket's Closed event handler before disposing

Claus Vium 6 년 전
부모
커밋
1ac282b12e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;