mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-06 06:29:50 +00:00
Replace redundant xml comments with inheritdoc. Make async changes to CloseSocket.
This commit is contained in:
parent
4b563f4d7e
commit
99df9c8fcd
6 changed files with 15 additions and 19 deletions
|
|
@ -231,13 +231,10 @@ namespace Emby.Server.Implementations.HttpServer
|
|||
CancellationToken.None);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gracefully closes the socket.
|
||||
/// </summary>
|
||||
/// <param name="cancellationToken">The cancellation token.</param>
|
||||
public void CloseSocket(CancellationToken cancellationToken)
|
||||
/// <inheritdoc />
|
||||
public async Task CloseSocket(CancellationToken cancellationToken)
|
||||
{
|
||||
_socket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "System Shutdown", cancellationToken);
|
||||
await _socket.CloseOutputAsync(WebSocketCloseStatus.NormalClosure, "System Shutdown", cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue