From fe632560f42150e31c868db9dd6b2649a0170651 Mon Sep 17 00:00:00 2001 From: anon Date: Mon, 22 Mar 2021 19:42:46 +0000 Subject: cryptonote_protocol_handler: fix race condition --- src/cryptonote_basic/connection_context.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cryptonote_basic') diff --git a/src/cryptonote_basic/connection_context.h b/src/cryptonote_basic/connection_context.h index a7d688300..ee26a0c07 100644 --- a/src/cryptonote_basic/connection_context.h +++ b/src/cryptonote_basic/connection_context.h @@ -77,6 +77,8 @@ namespace cryptonote int m_expect_response; uint64_t m_expect_height; size_t m_num_requested; + epee::copyable_atomic m_new_stripe_notification{0}; + epee::copyable_atomic m_idle_peer_notification{0}; }; inline std::string get_protocol_state_string(cryptonote_connection_context::state s) -- cgit v1.2.3