Skip to content

Commit

Permalink
fix(AutoDialer): ignore black listed peers
Browse files Browse the repository at this point in the history
  • Loading branch information
richardschneider committed Sep 6, 2019
1 parent c704e7c commit 89dfd94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AutoDialer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ async void OnPeerDisconnected(object sender, Peer disconnectedPeer)
var peers = swarm.KnownPeers
.Where(p => p.ConnectedAddress == null)
.Where(p => p != disconnectedPeer)
.Where(p => swarm.IsAllowed(p))
.Where(p => !swarm.HasPendingConnection(p))
.ToArray();
if (peers.Length == 0)
Expand Down

0 comments on commit 89dfd94

Please sign in to comment.