Call SharpWebSocket's Closed event handler before disposing

This commit is contained in:
Claus Vium 2019-02-27 23:39:20 +01:00
parent 588a13377c
commit 1ac282b12e

View file

@ -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;