Browse Source

tlog: update tlog

Nick Peng 5 years ago
parent
commit
80cb27c795
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/tlog.c

+ 1 - 1
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;