aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2021-01-01 22:31:03 -0800
committerAlexander Blair <snipa@jagtech.io>2021-01-01 22:31:03 -0800
commitde8b27d8c226b8127a3dfd5809eee7b389377c33 (patch)
tree6f28f1a290969820efcae1f099e753564129bc5d /src
parent5917aec4a17178ac4b39ea6c1a917e63d4cebd14 (diff)
parent31c69923ba2c3f90d643ef625419fd60fdb55c6a (diff)
downloadmonzero-core-de8b27d8c226b8127a3dfd5809eee7b389377c33.tar.gz
monzero-core-de8b27d8c226b8127a3dfd5809eee7b389377c33.tar.xz
monzero-core-de8b27d8c226b8127a3dfd5809eee7b389377c33.zip
Merge pull request #7234
31c69923b protocol: don't reset last request time on an idle timer (moneromooo-monero)
Diffstat (limited to 'src')
-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 22e87465f..58cca8cd4 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();