fix: keep ETIMEDOUT error code in timewait state

This commit is contained in:
Hongze Cheng 2024-08-07 19:09:04 +08:00
parent 2ca4c03243
commit f313004b4c
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ int32_t taosThreadCondTimedWait(TdThreadCond *cond, TdThreadMutex *mutex, const
return EINVAL;
#else
int32_t code = pthread_cond_timedwait(cond, mutex, abstime);
if (code) {
if (code && code != ETIMEDOUT) {
terrno = TAOS_SYSTEM_ERROR(code);
return terrno;
}