aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2021-01-01 22:41:54 -0800
committerAlexander Blair <snipa@jagtech.io>2021-01-01 22:41:54 -0800
commit5767e6db909d1c93a90e7cb39380da49a6737b7c (patch)
treede4491753e4ff3af94b379212f945e58a0cf0afc
parentMerge pull request #7228 from vtnerd/fix/p2p_memory_usage_017 (diff)
parentprotocol: don't reset last request time on an idle timer (diff)
downloadmonero-5767e6db909d1c93a90e7cb39380da49a6737b7c.tar.xz
Merge pull request #7235
00253b717 protocol: don't reset last request time on an idle timer (moneromooo-monero)
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index 1a4c6d033..e0f856f1b 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -137,7 +137,7 @@ namespace cryptonote
CHECK_AND_ASSERT_MES_CC( context.m_callback_request_count > 0, false, "false callback fired, but context.m_callback_request_count=" << context.m_callback_request_count);
--context.m_callback_request_count;
- if(context.m_state == cryptonote_connection_context::state_synchronizing)
+ if(context.m_state == cryptonote_connection_context::state_synchronizing && context.m_last_request_time == boost::posix_time::not_a_date_time)
{
NOTIFY_REQUEST_CHAIN::request r = {};
context.m_needed_objects.clear();