From 4a69eaaebe0a7d6342b447d9acc33bba11e8911b Mon Sep 17 00:00:00 2001 From: Adam Schroder Date: Sat, 5 Jun 2021 14:20:58 +1000 Subject: [PATCH] Remove event handler for NetworkChange.NetworkAddressChanged fixes #99 --- src/MulticastService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MulticastService.cs b/src/MulticastService.cs index d39491b..7b54516 100644 --- a/src/MulticastService.cs +++ b/src/MulticastService.cs @@ -267,6 +267,7 @@ public void Stop() QueryReceived = null; AnswerReceived = null; NetworkInterfaceDiscovered = null; + NetworkChange.NetworkAddressChanged -= OnNetworkAddressChanged; // Stop current UDP listener client?.Dispose();