diff options
| author | gion <oancaionutandrei@gmail.com> | 2020-05-26 11:37:52 +0200 |
|---|---|---|
| committer | gion <oancaionutandrei@gmail.com> | 2020-05-26 11:37:52 +0200 |
| commit | e42bfc92f3e072a3d51dddce06bc90587e06791c (patch) | |
| tree | b436044e5886e310f8f5f1e466af13c042c90fda /Emby.Server.Implementations/HttpServer | |
| parent | e4838b0faa2dafec9382abe8e00bd18be624a030 (diff) | |
Fix code issues
Diffstat (limited to 'Emby.Server.Implementations/HttpServer')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/WebSocketConnection.cs | 6 |
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); |
