The Free Software Media System - Server Backend & API
Use ObjectDisposedException throw helper in UdpServerEntryPoint
Patrick Barron57a22673049e
diff --git a/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs b/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.csindex 56ccb21ee7..2af2677855 100644--- a/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs+++ b/Emby.Server.Implementations/EntryPoints/UdpServerEntryPoint.cs@@ -68,7 +68,7 @@ namespace Emby.Server.Implementations.EntryPoints/// <inheritdoc />public Task RunAsync(){- CheckDisposed();+ ObjectDisposedException.ThrowIf(_disposed, this);if (!_configurationManager.GetNetworkConfiguration().AutoDiscovery){@@ -123,14 +123,6 @@ namespace Emby.Server.Implementations.EntryPointsreturn Task.CompletedTask;}- private void CheckDisposed()- {- if (_disposed)- {- throw new ObjectDisposedException(GetType().Name);- }- }-/// <inheritdoc />public void Dispose(){