Merge pull request #5910

1b91beb abstract_tcp_server2: fix lingering connections (moneromooo-monero)
This commit is contained in:
luigi1111 2019-09-30 18:55:58 -05:00
commit 15b9b4e047
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -748,6 +748,11 @@ PRAGMA_WARNING_DISABLE_VS(4355)
MERROR("Resetting timer on a dead object"); MERROR("Resetting timer on a dead object");
return; return;
} }
if (m_was_shutdown)
{
MERROR("Setting timer on a shut down object");
return;
}
if (add) if (add)
ms += m_timer.expires_from_now(); ms += m_timer.expires_from_now();
m_timer.expires_from_now(ms); m_timer.expires_from_now(ms);