Fix infinite loop in case of some peer connect errors (#1494)

This commit is contained in:
Gary Yu 2018-09-11 06:23:49 +08:00 committed by Ignotus Peverell
parent e760ea2ce2
commit 48857b7e16

View file

@ -314,7 +314,7 @@ fn listen_for_addrs(
}
}
p2p::Error::PeerWithSelf => break,
_ => continue,
_ => (),
}
}
}