mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-23 15:36:44 +00:00
fix double error message on display api
This commit is contained in:
parent
848a4a6909
commit
c6c479f028
@ -2302,6 +2302,7 @@ SWITCH_STANDARD_API(uuid_display_function)
|
|||||||
|
|
||||||
if (zstr(cmd) || argc < 2 || zstr(argv[0]) || zstr(argv[1])) {
|
if (zstr(cmd) || argc < 2 || zstr(argv[0]) || zstr(argv[1])) {
|
||||||
stream->write_function(stream, "-USAGE: %s\n", DISPLAY_SYNTAX);
|
stream->write_function(stream, "-USAGE: %s\n", DISPLAY_SYNTAX);
|
||||||
|
goto end;
|
||||||
} else {
|
} else {
|
||||||
switch_core_session_message_t msg = { 0 };
|
switch_core_session_message_t msg = { 0 };
|
||||||
switch_core_session_t *lsession = NULL;
|
switch_core_session_t *lsession = NULL;
|
||||||
@ -2322,6 +2323,8 @@ SWITCH_STANDARD_API(uuid_display_function)
|
|||||||
stream->write_function(stream, "-ERR Operation Failed\n");
|
stream->write_function(stream, "-ERR Operation Failed\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
end:
|
||||||
|
|
||||||
switch_safe_free(mycmd);
|
switch_safe_free(mycmd);
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user