diff --git a/src/tlog.c b/src/tlog.c index 7162fb1..47b1cfe 100644 --- a/src/tlog.c +++ b/src/tlog.c @@ -1377,7 +1377,7 @@ static void *_tlog_work(void *arg) log = _tlog_wait_log_locked(log); if (log == NULL) { pthread_mutex_unlock(&tlog.lock); - if (errno != ETIMEDOUT) { + if (errno != ETIMEDOUT && tlog.run) { sleep(1); } continue;