This commit is contained in:
Jeff Tao 2020-10-02 14:56:54 +00:00
parent 8c8f090167
commit a8b8ecb20e
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit 567b7b12f3fd2775c718d284beffc8c38dd6c219
Subproject commit 8c58c512b6acda8bcdfa48fdc7140227b5221766

View File

@ -196,7 +196,7 @@ static void taosStopTcpThread(SThreadObj* pThreadObj) {
}
}
if (taosCheckPthreadValid(pThreadObj->thread)) pthread_join(pThreadObj->thread, NULL);
if (taosCheckPthreadValid(pThreadObj->thread) && pThreadObj->pollFd >= 0) pthread_join(pThreadObj->thread, NULL);
if (fd != -1) taosCloseSocket(fd);
}