fix nonsensical check

This commit is contained in:
vyzo 2019-01-21 00:07:44 +02:00
parent bfd65a2f6b
commit 73491150d9

View File

@ -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
}