[TD-6169]<fix>: windows dll client can not quit.

This commit is contained in:
afwerar 2021-08-24 13:38:33 +08:00
parent 745c5a918e
commit ea2607a738
1 changed files with 2 additions and 2 deletions

View File

@ -720,8 +720,6 @@ void* taosCacheTimedRefresh(void *handle) {
continue; continue;
} }
pthread_mutex_unlock(&guard);
if ((count % pCacheObj->checkTick) != 0) { if ((count % pCacheObj->checkTick) != 0) {
continue; continue;
} }
@ -741,6 +739,8 @@ void* taosCacheTimedRefresh(void *handle) {
} }
taosTrashcanEmpty(pCacheObj, false); taosTrashcanEmpty(pCacheObj, false);
pthread_mutex_unlock(&guard);
} }
} }