mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-10 19:04:07 +00:00
fix web socket message parsing
This commit is contained in:
parent
ecc6df0b71
commit
e70e06f0ac
3 changed files with 36 additions and 15 deletions
|
|
@ -2,6 +2,7 @@
|
|||
using MediaBrowser.Controller.Net;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using WebSocketState = MediaBrowser.Model.Net.WebSocketState;
|
||||
|
|
@ -149,7 +150,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
|||
WebSocket.OnMessage -= socket_OnMessage;
|
||||
WebSocket.OnClose -= socket_OnClose;
|
||||
WebSocket.OnError -= socket_OnError;
|
||||
|
||||
|
||||
_cancellationTokenSource.Cancel();
|
||||
|
||||
WebSocket.Close();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue