mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 11:29:23 +00:00
Sanity check
This commit is contained in:
parent
6d3cfa2c7a
commit
fda80e3556
1 changed files with 4 additions and 0 deletions
|
@ -380,6 +380,10 @@ void P2PServer::broadcast(const PoolBlock& block)
|
|||
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);
|
||||
if (err) {
|
||||
LOGERR(1, "uv_async_send failed, error " << uv_err_name(err));
|
||||
|
|
Loading…
Reference in a new issue