Skip to content

Commit

Permalink
WIP) remove event
Browse files Browse the repository at this point in the history
  • Loading branch information
longfin committed May 11, 2019
1 parent 206dede commit c446d3e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Libplanet/Net/Swarm.cs
Expand Up @@ -390,11 +390,10 @@ public void CopyTo(Peer[] array, int arrayIndex)
await Task.Delay(_linger, cancellationToken);
}

if (_queuePoller.IsRunning)
{
_queuePoller.Dispose();
}
_broadcastQueue.ReceiveReady -= DoBroadcast;
_replyQueue.ReceiveReady -= DoReply;

_queuePoller.Dispose();
_broadcastQueue.Dispose();
_replyQueue.Dispose();

Expand Down

0 comments on commit c446d3e

Please sign in to comment.