Exit if server startup fails

This commit is contained in:
SChernykh
2022-05-23 15:46:15 +02:00
parent b191962d32
commit 0e222afd6a
3 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ P2PServer::P2PServer(p2pool* pool)
int err = uv_async_init(&m_loop, &m_broadcastAsync, on_broadcast);
if (err) {
LOGERR(1, "uv_async_init failed, error " << uv_err_name(err));
return;
panic();
}
m_broadcastAsync.data = this;
m_broadcastQueue.reserve(2);