p2p: use maxDialingConns instead of maxAcceptConns as dial limit

This commit is contained in:
Felix Lange 2015-05-08 15:58:19 +02:00
parent 914e57e49b
commit 9c0f36c46d
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ func (srv *Server) dialLoop() {
defer refresh.Stop()
// Limit the number of concurrent dials
tokens := maxAcceptConns
tokens := maxDialingConns
if srv.MaxPendingPeers > 0 {
tokens = srv.MaxPendingPeers
}