[Freeswitch-svn] [commit] r8246 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Fri May 2 09:18:55 EDT 2008


Author: anthm
Date: Fri May  2 09:18:54 2008
New Revision: 8246

Modified:
   freeswitch/trunk/src/switch_cpp.cpp

Log:
tweak

Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp	(original)
+++ freeswitch/trunk/src/switch_cpp.cpp	Fri May  2 09:18:54 2008
@@ -835,6 +835,10 @@
 	
     switch_file_handle_t *fh = NULL;	   
 
+    if (switch_strlen_zero(ret)) {
+		return SWITCH_STATUS_SUCCESS;	
+    }
+
 	if (fhp) {
 		fh = fhp;
 	} else {
@@ -857,10 +861,6 @@
 		return SWITCH_STATUS_FALSE;	
     }
 
-    if (!ret) {
-		return SWITCH_STATUS_SUCCESS;	
-    }
-
     if (!session) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Process callback result aborted because session is null\n");
 		return SWITCH_STATUS_FALSE;	



More information about the Freeswitch-svn mailing list