Skip to content

Commit

Permalink
Don't SEGFAULT
Browse files Browse the repository at this point in the history
  • Loading branch information
amosbird committed Jul 15, 2019
1 parent 6d12c68 commit 5f7ee42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/src/tlog.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void taosStopLog() {
void taosCloseLogger() {
taosStopLog();
sem_post(&(logHandle->buffNotEmpty));
pthread_join(logHandle->asyncThread, NULL);
if (logHandle->asyncThread) pthread_join(logHandle->asyncThread, NULL);
// In case that other threads still use log resources causing invalid write in
// valgrind, we comment two lines below.
// taosLogBuffDestroy(logHandle);
Expand Down

0 comments on commit 5f7ee42

Please sign in to comment.