diff options
| author | Bond_009 <bond.009@outlook.com> | 2018-12-28 15:21:02 +0100 |
|---|---|---|
| committer | Vasily <JustAMan@users.noreply.github.com> | 2019-01-05 01:49:52 +0300 |
| commit | 391b48614d598b5fbfad68b610520a5ae7a57b70 (patch) | |
| tree | ad5f23fcd90a22e0f986bff7aaa65eae5c73ed95 /Emby.Dlna | |
| parent | e4a041b8321e49fd9b21fb0f890caf23d4752212 (diff) | |
Remove FireEventIfNotNull
It's a pretty useless "helper" class
Diffstat (limited to 'Emby.Dlna')
| -rw-r--r-- | Emby.Dlna/Ssdp/DeviceDiscovery.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Dlna/Ssdp/DeviceDiscovery.cs b/Emby.Dlna/Ssdp/DeviceDiscovery.cs index 85dc4d94f5..d91f711d2f 100644 --- a/Emby.Dlna/Ssdp/DeviceDiscovery.cs +++ b/Emby.Dlna/Ssdp/DeviceDiscovery.cs @@ -119,7 +119,7 @@ namespace Emby.Dlna.Ssdp } }; - EventHelper.FireEventIfNotNull(DeviceDiscoveredInternal, this, args, _logger); + DeviceDiscoveredInternal?.Invoke(this, args); } private void _DeviceLocator_DeviceUnavailable(object sender, DeviceUnavailableEventArgs e) @@ -139,7 +139,7 @@ namespace Emby.Dlna.Ssdp } }; - EventHelper.FireEventIfNotNull(DeviceLeft, this, args, _logger); + DeviceLeft?.Invoke(this, args); } public void Dispose() |
