]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
dont return error if there are no events on wanpipe_poll, it may be an async signal...
authorMoises Silva <moy@sangoma.com>
Thu, 7 Jan 2010 16:55:48 +0000 (16:55 +0000)
committerMoises Silva <moy@sangoma.com>
Thu, 7 Jan 2010 16:55:48 +0000 (16:55 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@950 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/ozmod/ozmod_wanpipe/ozmod_wanpipe.c

index 027bdabcea77b5e1bf198d001661e2e601ba5704..713e72498bd99131e8fee12b6617b155d8ab05f5 100644 (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;
 }
 
 /**