Sanity check

This commit is contained in:
SChernykh 2021-08-23 23:09:59 +02:00
parent 6d3cfa2c7a
commit fda80e3556

View file

@ -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));