mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-02-13 19:33:58 +00:00
ignoring ObjectDisposedException when server stops.
This commit is contained in:
@@ -202,7 +202,7 @@ namespace DnsServerCore.Dhcp
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
//socket disposed
|
||||
//server stopped
|
||||
}
|
||||
catch (SocketException ex)
|
||||
{
|
||||
|
||||
@@ -374,6 +374,10 @@ namespace DnsServerCore.Dns
|
||||
if (log != null)
|
||||
log.Write(localEP, protocol, ex);
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
//server stopped
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if ((_state == ServiceState.Stopping) || (_state == ServiceState.Stopped))
|
||||
|
||||
@@ -217,6 +217,10 @@ namespace DnsServerCore
|
||||
|
||||
_log.Write(ex);
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
//web service stopped
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if ((_state == ServiceState.Stopping) || (_state == ServiceState.Stopped))
|
||||
@@ -244,6 +248,10 @@ namespace DnsServerCore
|
||||
|
||||
_log.Write(ex);
|
||||
}
|
||||
catch (ObjectDisposedException)
|
||||
{
|
||||
//web service stopped
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if ((_state == ServiceState.Stopping) || (_state == ServiceState.Stopped))
|
||||
|
||||
Reference in New Issue
Block a user