aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
diff options
context:
space:
mode:
authorgion <oancaionutandrei@gmail.com>2020-05-26 11:37:52 +0200
committergion <oancaionutandrei@gmail.com>2020-05-26 11:37:52 +0200
commite42bfc92f3e072a3d51dddce06bc90587e06791c (patch)
treeb436044e5886e310f8f5f1e466af13c042c90fda /Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
parente4838b0faa2dafec9382abe8e00bd18be624a030 (diff)
Fix code issues
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/WebSocketConnection.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/WebSocketConnection.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
index 1f5a7d177..0680c5ffe 100644
--- a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
+++ b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
@@ -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);