Replace redundant xml comments with inheritdoc. Make async changes to CloseSocket.

This commit is contained in:
luke92brown
2022-05-09 22:00:30 -05:00
committed by luke brown
parent 4b563f4d7e
commit 99df9c8fcd
6 changed files with 15 additions and 19 deletions

View File

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