]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4959 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Sun, 23 Dec 2012 04:35:52 +0000 (22:35 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Sun, 23 Dec 2012 04:35:52 +0000 (22:35 -0600)
src/mod/applications/mod_commands/mod_commands.c

index 78655106a1212a3515f142925829886220404858..8179dee35847a4b1e59136bade3ac755463cbf97 100644 (file)
@@ -3668,7 +3668,7 @@ SWITCH_STANDARD_API(session_record_function)
 
        if (!(rsession = switch_core_session_locate(uuid))) {
                stream->write_function(stream, "-ERR Cannot locate session!\n");
-               return SWITCH_STATUS_SUCCESS;
+               goto done;
        }
 
        if (!strcasecmp(action, "start")) {
@@ -3731,7 +3731,7 @@ SWITCH_STANDARD_API(session_displace_function)
 
        if (!(rsession = switch_core_session_locate(uuid))) {
                stream->write_function(stream, "-ERR Cannot locate session!\n");
-               return SWITCH_STATUS_SUCCESS;
+               goto done;
        }
 
        if (!strcasecmp(action, "start")) {