From 2c7f81292f448ea0a49932acb3cab3be6a899222 Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Thu, 25 Apr 2019 10:41:25 +1200 Subject: [PATCH] fix(MulticastService): shutdown race condition #55 --- src/MulticastService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MulticastService.cs b/src/MulticastService.cs index 7b10ecf..5d48fc3 100644 --- a/src/MulticastService.cs +++ b/src/MulticastService.cs @@ -487,7 +487,7 @@ void Send(Message msg, bool checkDuplicate) return; } - client.SendAsync(packet).GetAwaiter().GetResult(); + client?.SendAsync(packet).GetAwaiter().GetResult(); } ///