Fixed a rare crash on exit

This commit is contained in:
SChernykh
2023-01-13 18:25:04 +01:00
parent 14f667de74
commit 2c4c2b8469
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -124,7 +124,9 @@ void p2pool_api::dump_to_file_async_internal(Category category, const char* file
m_dumpData[path] = std::move(buf);
}
uv_async_send(&m_dumpToFileAsync);
if (!uv_is_closing(reinterpret_cast<uv_handle_t*>(&m_dumpToFileAsync))) {
uv_async_send(&m_dumpToFileAsync);
}
}
void p2pool_api::dump_to_file()