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
@@ -70,7 +70,7 @@ StratumServer::StratumServer(p2pool* pool)
const int err = uv_async_init(&m_loop, &m_blobsAsync, on_blobs_ready);
if (err) {
LOGERR(1, "uv_async_init failed, error " << uv_err_name(err));
return;
panic();
}
m_blobsAsync.data = this;
m_blobsQueue.reserve(2);