From: Moises Silva Date: Wed, 2 Dec 2009 16:36:42 +0000 (+0000) Subject: fix expected return code for WaitForSingleObject in zap queue implementation X-Git-Tag: v1.0.6~38^3~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b21fe80dcacb1bf4e47fad3d55153f4e53b6d94;p=thirdparty%2Ffreeswitch.git fix expected return code for WaitForSingleObject in zap queue implementation git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@921 a93c3328-9c30-0410-af19-c9cd2b2d52af --- diff --git a/libs/freetdm/src/zap_threadmutex.c b/libs/freetdm/src/zap_threadmutex.c index 3e894737c0..6128120934 100644 --- a/libs/freetdm/src/zap_threadmutex.c +++ b/libs/freetdm/src/zap_threadmutex.c @@ -286,8 +286,11 @@ OZ_DECLARE(zap_status_t) zap_condition_wait(zap_condition_t *condition, int ms) return ZAP_TIMEOUT; case WAIT_FAILED: return ZAP_FAIL; + case WAIT_OBJECT_0: + return ZAP_SUCCESS; default: zap_log(ZAP_LOG_ERROR, "Error waiting for openzap condition event (WaitForSingleObject returned %d)\n", res); + return ZAP_FAIL; } #else int res = 0; @@ -305,8 +308,8 @@ OZ_DECLARE(zap_status_t) zap_condition_wait(zap_condition_t *condition, int ms) } return ZAP_FAIL; } -#endif return ZAP_SUCCESS; +#endif } OZ_DECLARE(zap_status_t) zap_condition_signal(zap_condition_t *condition)