Fixed new Coverity issue

pull/112/head
SChernykh 2022-01-23 13:03:56 +01:00
parent c10a5ce323
commit 38ffd73b54
1 changed files with 6 additions and 1 deletions

View File

@ -65,7 +65,12 @@ public:
uv_cond_init(&m_cond);
uv_mutex_init(&m_mutex);
uv_thread_create(&m_worker, run_wrapper, this);
const int err = uv_thread_create(&m_worker, run_wrapper, this);
if (err) {
fprintf(stderr, "failed to start logger thread (%s), aborting\n", uv_err_name(err));
abort();
}
do {} while (!worker_started);