mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-01 01:12:58 +00:00
Fix code issues
This commit is contained in:
parent
e4838b0faa
commit
e42bfc92f3
6 changed files with 19 additions and 48 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue