]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix on timeout
authorMichael Jerris <mike@jerris.com>
Sun, 20 May 2007 04:48:56 +0000 (04:48 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 20 May 2007 04:48:56 +0000 (04:48 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@43 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/openzap/src/zap_wanpipe.c

index 57c1aa740006943d8f8e008ae6f5635617874282..70f9ffefa5c23f88a3b321f9abd8cca155699a8d 100644 (file)
@@ -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: