fix on timeout

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@43 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris 2007-05-20 04:48:56 +00:00
parent 3bf6d4d8f3
commit 6671691130
1 changed files with 2 additions and 2 deletions

View File

@ -323,13 +323,13 @@ static ZINT_WAIT_FUNCTION(wanpipe_wait_windows)
api_poll.user_flags_bitmap = inflags; api_poll.user_flags_bitmap = inflags;
api_poll.timeout = to; api_poll.timeout = to;
*flags = ZAP_NO_FLAGS;
if(DoApiPollCommand(zchan->sockfd, &api_poll)){ if(DoApiPollCommand(zchan->sockfd, &api_poll)){
snprintf(zchan->last_error, sizeof(zchan->last_error), "Poll failed"); snprintf(zchan->last_error, sizeof(zchan->last_error), "Poll failed");
return ZAP_FAIL; return ZAP_FAIL;
} }
*flags = ZAP_NO_FLAGS;
switch(api_poll.operation_status) switch(api_poll.operation_status)
{ {
case SANG_STATUS_RX_DATA_AVAILABLE: case SANG_STATUS_RX_DATA_AVAILABLE: