From 6671691130129407da281797a1633886a8acaf7c Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 20 May 2007 04:48:56 +0000 Subject: [PATCH] fix on timeout git-svn-id: http://svn.openzap.org/svn/openzap/trunk@43 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/freetdm/src/zap_wanpipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/freetdm/src/zap_wanpipe.c b/libs/freetdm/src/zap_wanpipe.c index 57c1aa7400..70f9ffefa5 100644 --- a/libs/freetdm/src/zap_wanpipe.c +++ b/libs/freetdm/src/zap_wanpipe.c @@ -323,13 +323,13 @@ static ZINT_WAIT_FUNCTION(wanpipe_wait_windows) api_poll.user_flags_bitmap = inflags; api_poll.timeout = to; + *flags = ZAP_NO_FLAGS; + if(DoApiPollCommand(zchan->sockfd, &api_poll)){ snprintf(zchan->last_error, sizeof(zchan->last_error), "Poll failed"); return ZAP_FAIL; } - *flags = ZAP_NO_FLAGS; - switch(api_poll.operation_status) { case SANG_STATUS_RX_DATA_AVAILABLE: