Don't update api when shutting down

This commit is contained in:
SChernykh
2023-09-13 21:12:01 +02:00
parent b83b691714
commit 2248739dd5
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1305,7 +1305,7 @@ void P2PServer::on_shutdown()
void P2PServer::api_update_local_stats()
{
if (!m_pool->api() || !m_pool->params().m_localStats || ((m_timerCounter % 30) != 5)) {
if (!m_pool->api() || !m_pool->params().m_localStats || m_pool->stopped() || ((m_timerCounter % 30) != 5)) {
return;
}