dont return error if there are no events on wanpipe_poll, it may be an async signal on the wanpipe device

git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@950 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Moises Silva 2010-01-07 16:55:48 +00:00
parent 4a5762ada3
commit 80e1a88b32
1 changed files with 2 additions and 3 deletions

View File

@ -855,9 +855,8 @@ ZIO_SPAN_POLL_EVENT_FUNCTION(wanpipe_poll_event)
k++;
}
}
return k ? ZAP_SUCCESS : ZAP_FAIL;
/* when k is 0 it might be that an async wanpipe device signal was delivered */
return ZAP_SUCCESS;
}
/**