From 1eaf192ed38e587ea19b216ad956df99d536519a Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Sat, 19 Oct 2019 14:24:46 +1300 Subject: [PATCH] fix(MulticastClient): catch all exceptions in Listen #83 --- src/MulticastClient.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/MulticastClient.cs b/src/MulticastClient.cs index ad20b6a..a324380 100644 --- a/src/MulticastClient.cs +++ b/src/MulticastClient.cs @@ -175,11 +175,7 @@ void Listen(UdpClient receiver) await task.ConfigureAwait(false); } - catch (NullReferenceException) - { - return; - } - catch (ObjectDisposedException) + catch { return; }