提交 5f7ee42c 编写于 作者: A Amos Bird

Don't SEGFAULT

上级 6d12c685
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册