diff options
| author | anon <anon [at] nowhere> | 2021-03-22 19:42:46 +0000 |
|---|---|---|
| committer | anon <anon [at] nowhere> | 2021-03-22 19:42:46 +0000 |
| commit | fe632560f42150e31c868db9dd6b2649a0170651 (patch) | |
| tree | 92d1acf601daf42ece53987840e65c612578020f /src/cryptonote_basic/connection_context.h | |
| parent | ded2f3aa85da4d34457069a498913f610ec55e72 (diff) | |
| download | monzero-core-fe632560f42150e31c868db9dd6b2649a0170651.tar.gz monzero-core-fe632560f42150e31c868db9dd6b2649a0170651.tar.xz monzero-core-fe632560f42150e31c868db9dd6b2649a0170651.zip | |
cryptonote_protocol_handler: fix race condition
Diffstat (limited to 'src/cryptonote_basic/connection_context.h')
| -rw-r--r-- | src/cryptonote_basic/connection_context.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
