Merge pull request #3232

b81e276c connection_context: initialize m_last_request_time to current time (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-02-16 14:24:12 +01:00
commit 853dd2d4f7
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -40,7 +40,7 @@ namespace cryptonote
struct cryptonote_connection_context: public epee::net_utils::connection_context_base 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), 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 enum state
{ {