aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-02-16 14:24:12 +0100
committerRiccardo Spagni <ric@spagni.net>2018-02-16 14:24:12 +0100
commit853dd2d4f7486ed6f78ee6de4c4ee3b907ba81f8 (patch)
treed58e791aa7678676c1eac0f2f79a245bd3526050
parentMerge pull request #3231 (diff)
parentconnection_context: initialize m_last_request_time to current time (diff)
downloadmonero-853dd2d4f7486ed6f78ee6de4c4ee3b907ba81f8.tar.xz
Merge pull request #3232
b81e276c connection_context: initialize m_last_request_time to current time (moneromooo-monero)
-rw-r--r--src/cryptonote_basic/connection_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_basic/connection_context.h b/src/cryptonote_basic/connection_context.h
index 705af978a..5cd1709ab 100644
--- a/src/cryptonote_basic/connection_context.h
+++ b/src/cryptonote_basic/connection_context.h
@@ -40,7 +40,7 @@ namespace cryptonote
struct cryptonote_connection_context: public epee::net_utils::connection_context_base
{
cryptonote_connection_context(): m_state(state_before_handshake), m_remote_blockchain_height(0), m_last_response_height(0),
- m_callback_request_count(0), m_last_known_hash(crypto::null_hash) {}
+ m_last_request_time(boost::posix_time::microsec_clock::universal_time()), m_callback_request_count(0), m_last_known_hash(crypto::null_hash) {}
enum state
{