提交 deb8d2bb authored 作者: Michael Jerris's avatar Michael Jerris

fix on timeout

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@43 a93c3328-9c30-0410-af19-c9cd2b2d52af
上级 6424510a
......@@ -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:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论