mirror of
https://codeberg.org/wownero/p2pool-wow.git
synced 2026-10-17 05:51:27 +02:00
Sanity check
This commit is contained in:
@@ -380,6 +380,10 @@ void P2PServer::broadcast(const PoolBlock& block)
|
|||||||
m_broadcastQueue.push_back(data);
|
m_broadcastQueue.push_back(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (uv_is_closing(reinterpret_cast<uv_handle_t*>(&m_broadcastAsync))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const int err = uv_async_send(&m_broadcastAsync);
|
const int err = uv_async_send(&m_broadcastAsync);
|
||||||
if (err) {
|
if (err) {
|
||||||
LOGERR(1, "uv_async_send failed, error " << uv_err_name(err));
|
LOGERR(1, "uv_async_send failed, error " << uv_err_name(err));
|
||||||
|
|||||||
Reference in New Issue
Block a user