Fix code issues

This commit is contained in:
gion
2020-05-26 11:37:52 +02:00
parent e4838b0faa
commit e42bfc92f3
6 changed files with 19 additions and 48 deletions

View File

@@ -223,7 +223,7 @@ namespace Emby.Server.Implementations.HttpServer
if (info.MessageType.Equals("KeepAlive", StringComparison.Ordinal))
{
SendKeepAliveResponse();
await SendKeepAliveResponse();
}
else
{
@@ -231,10 +231,10 @@ namespace Emby.Server.Implementations.HttpServer
}
}
private void SendKeepAliveResponse()
private Task SendKeepAliveResponse()
{
LastKeepAliveDate = DateTime.UtcNow;
SendAsync(new WebSocketMessage<string>
return SendAsync(new WebSocketMessage<string>
{
MessageType = "KeepAlive"
}, CancellationToken.None);