[Freeswitch-svn] [commit] r12231 - freeswitch/branches/ctrix/mod_airpe

FreeSWITCH SVN ctrix at freeswitch.org
Sun Feb 22 04:26:27 PST 2009


Author: ctrix
Date: Sun Feb 22 06:26:26 2009
New Revision: 12231

Log:
always return success when reading

Modified:
   freeswitch/branches/ctrix/mod_airpe/airpe_if_common.c

Modified: freeswitch/branches/ctrix/mod_airpe/airpe_if_common.c
==============================================================================
--- freeswitch/branches/ctrix/mod_airpe/airpe_if_common.c	(original)
+++ freeswitch/branches/ctrix/mod_airpe/airpe_if_common.c	Sun Feb 22 06:26:26 2009
@@ -256,7 +256,7 @@
     assert(pvt->airpe);
 
     if ( !switch_test_flag(pvt, TFLAG_IO) ) {
-	return SWITCH_STATUS_SUCCESS;
+		return SWITCH_STATUS_SUCCESS;
     }
 
     airpe = pvt->airpe;
@@ -327,8 +327,11 @@
     if ( (rv==SWITCH_STATUS_SUCCESS) ) {
 	    pvt->read_frame.datalen = mlen;
     }
+	else {
+		pvt->read_frame.datalen = 0;
+	}
 
-    return rv;
+    return SWITCH_STATUS_SUCCESS;
 }
 
 /*****************************************************************************



More information about the Freeswitch-svn mailing list