Use ObjectDisposedException throw helper in ExternalPortForwarding
This commit is contained in:
parent
fc1e27b754
commit
a37bd4e659
|
@ -128,10 +128,7 @@ namespace Emby.Server.Implementations.EntryPoints
|
||||||
|
|
||||||
private Task CreateRules(INatDevice device)
|
private Task CreateRules(INatDevice device)
|
||||||
{
|
{
|
||||||
if (_disposed)
|
ObjectDisposedException.ThrowIf(_disposed, this);
|
||||||
{
|
|
||||||
throw new ObjectDisposedException(GetType().Name);
|
|
||||||
}
|
|
||||||
|
|
||||||
// On some systems the device discovered event seems to fire repeatedly
|
// On some systems the device discovered event seems to fire repeatedly
|
||||||
// This check will help ensure we're not trying to port map the same device over and over
|
// This check will help ensure we're not trying to port map the same device over and over
|
||||||
|
|
Loading…
Reference in New Issue
Block a user