1
0
Fork 0
forked from lthn/blockchain

got rid of delay before first update of wallet info

This commit is contained in:
cryptozoidberg 2020-05-24 14:59:55 +02:00
parent 20d93cafd3
commit 9fc930230a
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -643,14 +643,15 @@ void wallets_manager::loop()
while (!m_stop_singal_sent)
{
{
std::unique_lock<std::mutex> lk(m_stop_singal_sent_mutex);
m_stop_singal_sent_mutex_cv.wait_for(lk, std::chrono::microseconds(DAEMON_IDLE_UPDATE_TIME_MS), [&] {return m_stop_singal_sent.load(); });
}
if (!m_stop_singal_sent)
{
update_state_info();
}
{
std::unique_lock<std::mutex> lk(m_stop_singal_sent_mutex);
m_stop_singal_sent_mutex_cv.wait_for(lk, std::chrono::microseconds(DAEMON_IDLE_UPDATE_TIME_MS), [&] {return m_stop_singal_sent.load(); });
}
}
// while(!m_stop_singal_sent)