mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-21 08:15:28 +03:00
Fix web sockets closing ungracefully
This commit is contained in:
@@ -88,6 +88,18 @@ namespace Emby.Server.Implementations.Session
|
||||
cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gracefully closes all web sockets.
|
||||
/// </summary>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
public void CloseAllWebSockets(CancellationToken cancellationToken)
|
||||
{
|
||||
foreach (var socket in _sockets)
|
||||
{
|
||||
socket.CloseSocket(cancellationToken);
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user