Skip to content

Commit

Permalink
fix(Dht1.StopAsync): remove all event handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Aug 22, 2019
1 parent 63fde7f commit 70b652a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Routing/Dht1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 70b652a

Please sign in to comment.