Merge pull request #12316 from taosdata/fix/ZhiqiangWang/fix-15435-centos-thread-error

fix(os): entos thread error.
This commit is contained in:
Zhiqiang Wang 2022-05-10 19:17:55 +08:00 committed by GitHub
commit d608e6ec55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -911,7 +911,7 @@ void taosCacheRefresh(SCacheObj *pCacheObj, __cache_trav_fn_t fp, void *param1)
void taosStopCacheRefreshWorker(void) {
stopRefreshWorker = true;
taosThreadJoin(cacheRefreshWorker, NULL);
if(cacheThreadInit != PTHREAD_ONCE_INIT) taosThreadJoin(cacheRefreshWorker, NULL);
taosArrayDestroy(pCacheArrayList);
}