From c32e8b87bd116560367d9946fdfa0d2dbc2644d0 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 26 Nov 2022 11:51:03 +0530 Subject: [PATCH] LogManager: changes done to ignore ObjectDisposedException. --- DnsServerCore/LogManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DnsServerCore/LogManager.cs b/DnsServerCore/LogManager.cs index 84dfc4a6..4a7f224d 100644 --- a/DnsServerCore/LogManager.cs +++ b/DnsServerCore/LogManager.cs @@ -89,6 +89,8 @@ namespace DnsServerCore WriteLog(DateTime.UtcNow, e.ExceptionObject.ToString()); } } + catch (ObjectDisposedException) + { } catch (Exception ex) { Console.WriteLine(e.ExceptionObject.ToString()); @@ -243,6 +245,8 @@ namespace DnsServerCore } } } + catch (ObjectDisposedException) + { } catch (OperationCanceledException) { } finally