reset connection attempts before reconnect

This commit is contained in:
orignal 2019-11-12 06:46:08 -05:00
parent 569088eaca
commit c66f9c8d6d

View file

@ -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);