Browse Source

Merge pull request #1642 from ethereum/p2p

Don't use unsigned for negative value.
cl-refactor
chriseth 10 years ago
parent
commit
17079187c2
  1. 2
      libp2p/Host.cpp

2
libp2p/Host.cpp

@ -579,7 +579,7 @@ void Host::run(boost::system::error_code const&)
// is always live and to ensure reputation and fallback timers are properly
// updated. // disconnectLatePeers();
auto openSlots = m_idealPeerCount - peerCount();
int openSlots = m_idealPeerCount - peerCount();
if (openSlots > 0)
{
list<shared_ptr<Peer>> toConnect;

Loading…
Cancel
Save