Browse Source

reset connection attempts before reconnect

pull/1441/head
orignal 5 years ago
parent
commit
c66f9c8d6d
  1. 3
      libi2pd/Transports.cpp

3
libi2pd/Transports.cpp

@ -651,7 +651,10 @@ namespace transport @@ -651,7 +651,10 @@ namespace transport
if (it->second.sessions.empty ()) // TODO: why?
{
if (it->second.delayedMessages.size () > 0)
{
it->second.numAttempts = 0;
ConnectToPeer (ident, it->second);
}
else
{
std::unique_lock<std::mutex> l(m_PeersMutex);

Loading…
Cancel
Save