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

This commit is contained in:
afwerar 2021-08-24 16:55:47 +08:00
parent 5aad68b300
commit 605844f2ea
1 changed files with 2 additions and 2 deletions

View File

@ -537,8 +537,8 @@ void taosCacheCleanup(SCacheObj *pCacheObj) {
pCacheObj->deleting = 1; pCacheObj->deleting = 1;
// wait for the refresh thread quit before destroying the cache object. // wait for the refresh thread quit before destroying the cache object.
// But in the dll, the child thread will be killed before atexit takes effect.So here we only wait for 5 seconds. // But in the dll, the child thread will be killed before atexit takes effect.So here we only wait for 2 seconds.
for (int i = 0; i < 100&&atomic_load_8(&pCacheObj->deleting) != 0; i++) { for (int i = 0; i < 40&&atomic_load_8(&pCacheObj->deleting) != 0; i++) {
taosMsleep(50); taosMsleep(50);
} }