fix on timeout
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@43 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
3bf6d4d8f3
commit
6671691130
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue