From 70b652ab3ec72c77bebdb84a9e6bb6032de3d15d Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Thu, 22 Aug 2019 16:03:30 +1200 Subject: [PATCH] fix(Dht1.StopAsync): remove all event handlers --- src/Routing/Dht1.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Routing/Dht1.cs b/src/Routing/Dht1.cs index 8c66a87..a8e05d1 100644 --- a/src/Routing/Dht1.cs +++ b/src/Routing/Dht1.cs @@ -129,6 +129,7 @@ public Task StopAsync() Swarm.RemoveProtocol(this); Swarm.PeerDiscovered -= Swarm_PeerDiscovered; + Swarm.PeerRemoved -= Swarm_PeerRemoved; Stopped?.Invoke(this, EventArgs.Empty); ContentRouter?.Dispose();