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
@@ -1274,7 +1274,7 @@ bool StratumServer::StratumClient::process_submit(rapidjson::Document& doc, uint
void StratumServer::api_update_local_stats(uint64_t timestamp)
{
if (!m_pool->api() || !m_pool->params().m_localStats) {
if (!m_pool->api() || !m_pool->params().m_localStats || m_pool->stopped()) {
return;
}