Skip to content

Commit

Permalink
fix nonsensical check
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jan 20, 2019
1 parent bfd65a2 commit 7349115
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 7349115

Please sign in to comment.