mirror of
https://github.com/monero-project/monero.git
synced 2024-12-28 00:19:31 -05:00
net_node: fix a hang on exit
One loop was not paying attention to the stop signal, and could end up looping forever
This commit is contained in:
parent
40880d7cb8
commit
17ff6f2114
@ -570,7 +570,7 @@ namespace nodetool
|
||||
mPeersLoggerThread.reset(new std::thread([&]()
|
||||
{
|
||||
_note("Thread monitor number of peers - start");
|
||||
while (!is_closing)
|
||||
while (!is_closing && !m_net_server.is_stop_signal_sent())
|
||||
{ // main loop of thread
|
||||
//number_of_peers = m_net_server.get_config_object().get_connections_count();
|
||||
unsigned int number_of_peers = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user