aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-09-30 18:55:58 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-09-30 18:55:58 -0500
commit15b9b4e047354318544366a357a812e715b3ea3a (patch)
treefdd2a56bb77c97f355dd24855afc9bece2506fd7
parentMerge pull request #5908 (diff)
parentabstract_tcp_server2: fix lingering connections (diff)
downloadmonero-15b9b4e047354318544366a357a812e715b3ea3a.tar.xz
Merge pull request #5910
1b91beb abstract_tcp_server2: fix lingering connections (moneromooo-monero)
-rw-r--r--contrib/epee/include/net/abstract_tcp_server2.inl5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl
index 240ef3bc4..e455d0204 100644
--- a/contrib/epee/include/net/abstract_tcp_server2.inl
+++ b/contrib/epee/include/net/abstract_tcp_server2.inl
@@ -748,6 +748,11 @@ PRAGMA_WARNING_DISABLE_VS(4355)
MERROR("Resetting timer on a dead object");
return;
}
+ if (m_was_shutdown)
+ {
+ MERROR("Setting timer on a shut down object");
+ return;
+ }
if (add)
ms += m_timer.expires_from_now();
m_timer.expires_from_now(ms);