aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2018-12-28 15:21:02 +0100
committerVasily <JustAMan@users.noreply.github.com>2019-01-05 01:49:52 +0300
commit391b48614d598b5fbfad68b610520a5ae7a57b70 (patch)
treead5f23fcd90a22e0f986bff7aaa65eae5c73ed95 /Emby.Server.Implementations/HttpServer
parente4a041b8321e49fd9b21fb0f890caf23d4752212 (diff)
Remove FireEventIfNotNull
It's a pretty useless "helper" class
Diffstat (limited to 'Emby.Server.Implementations/HttpServer')
-rw-r--r--Emby.Server.Implementations/HttpServer/HttpListenerHost.cs2
-rw-r--r--Emby.Server.Implementations/HttpServer/WebSocketConnection.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
index 704b7f8a6..66b930a80 100644
--- a/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
+++ b/Emby.Server.Implementations/HttpServer/HttpListenerHost.cs
@@ -184,7 +184,7 @@ namespace Emby.Server.Implementations.HttpServer
if (WebSocketConnected != null)
{
- EventHelper.FireEventIfNotNull(WebSocketConnected, this, new GenericEventArgs<IWebSocketConnection>(connection), _logger);
+ WebSocketConnected?.Invoke(this, new GenericEventArgs<IWebSocketConnection>(connection));
}
}
diff --git a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
index 8b5dfd444..095675ec4 100644
--- a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
+++ b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs
@@ -118,7 +118,7 @@ namespace Emby.Server.Implementations.HttpServer
void socket_Closed(object sender, EventArgs e)
{
- EventHelper.FireEventIfNotNull(Closed, this, EventArgs.Empty, _logger);
+ Closed?.Invoke(this, EventArgs.Empty);
}
/// <summary>