]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 2 May 2008 13:18:54 +0000 (13:18 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 2 May 2008 13:18:54 +0000 (13:18 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8246 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_cpp.cpp

index caa1b77a77aafc63fafa1a96499cfa379ffdc460..f111d491e19ca65e5ba4dce937c595ee9e65a13c 100644 (file)
@@ -835,6 +835,10 @@ SWITCH_DECLARE(switch_status_t) CoreSession::process_callback_result(char *ret)
        
     switch_file_handle_t *fh = NULL;      
 
+    if (switch_strlen_zero(ret)) {
+               return SWITCH_STATUS_SUCCESS;   
+    }
+
        if (fhp) {
                fh = fhp;
        } else {
@@ -857,10 +861,6 @@ SWITCH_DECLARE(switch_status_t) CoreSession::process_callback_result(char *ret)
                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;