未验证 提交 4173a8bb 编写于 作者: H hzcheng 提交者: GitHub

Merge pull request #21 from amosbird/t1

Don't SEGFAULT
......@@ -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.
先完成此消息的编辑!
想要评论请 注册