mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 21:00:27 -04:00
Fix delayed exit when syncing
This commit is contained in:
parent
c36cb54340
commit
3f7d6fb57d
6 changed files with 49 additions and 4 deletions
|
@ -109,6 +109,7 @@ namespace cryptonote
|
|||
bool is_synchronized(){return m_synchronized;}
|
||||
void log_connections();
|
||||
std::list<connection_info> get_connections();
|
||||
void stop();
|
||||
private:
|
||||
//----------------- commands handlers ----------------------------------------------
|
||||
int handle_notify_new_block(int command, NOTIFY_NEW_BLOCK::request& arg, cryptonote_connection_context& context);
|
||||
|
@ -135,6 +136,7 @@ namespace cryptonote
|
|||
std::atomic<uint32_t> m_syncronized_connections_count;
|
||||
std::atomic<bool> m_synchronized;
|
||||
bool m_one_request = true;
|
||||
std::atomic<bool> m_stopping;
|
||||
|
||||
// static std::ofstream m_logreq;
|
||||
boost::mutex m_buffer_mutex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue