Skip to content

Commit

Permalink
Merge pull request #154 from libp2p/fix/issue-153
Browse files Browse the repository at this point in the history
fix nonsensical check
  • Loading branch information
vyzo authored Jan 20, 2019
2 parents bfd65a2 + 7349115 commit ef065c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func (p *PubSub) processLoop(ctx context.Context) {
for {
select {
case pid := <-p.newPeers:
if p.blacklist.Contains(pid) {
if _, ok := p.peers[pid]; ok {
log.Warning("already have connection to peer: ", pid)
continue
}
Expand Down

0 comments on commit ef065c2

Please sign in to comment.