Browse Source

bit by auto again. don't use unsigned for negative value.

cl-refactor
subtly 10 years ago
parent
commit
10a7419823
  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