mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-09 04:04:54 +00:00
fix channel query by category
This commit is contained in:
parent
715119b525
commit
ca5989cb17
4 changed files with 28 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace MediaBrowser.Server.Implementations.Session
|
||||
{
|
||||
public class WebSocketController : ISessionController
|
||||
public class WebSocketController : ISessionController, IDisposable
|
||||
{
|
||||
public SessionInfo Session { get; private set; }
|
||||
public IReadOnlyList<IWebSocketConnection> Sockets { get; private set; }
|
||||
|
|
@ -244,5 +244,13 @@ namespace MediaBrowser.Server.Implementations.Session
|
|||
|
||||
return Task.WhenAll(tasks);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
foreach (var socket in Sockets.ToList())
|
||||
{
|
||||
socket.Closed -= connection_Closed;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue