diff options
| author | gion <oancaionutandrei@gmail.com> | 2020-04-21 23:37:37 +0200 |
|---|---|---|
| committer | gion <oancaionutandrei@gmail.com> | 2020-04-27 22:39:37 +0200 |
| commit | 083d3272d09395e2b7d73d886377017573e63686 (patch) | |
| tree | ddeb2ae7b53417c3b564aa480a84e59ce9c2a5aa /Emby.Server.Implementations/HttpServer/WebSocketConnection.cs | |
| parent | aad5058d25b3c295e9ea5b4330dde219034ba8c8 (diff) | |
Refactor and other minor changes
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/WebSocketConnection.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/WebSocketConnection.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs index 171047e65..c819c163a 100644 --- a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs +++ b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs @@ -176,10 +176,9 @@ namespace Emby.Server.Implementations.HttpServer { SendKeepAliveResponse(); } - - if (OnReceive != null) + else { - OnReceive(info); + OnReceive?.Invoke(info); } } catch (Exception ex) |
