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])) {
|
||||
stream->write_function(stream, "-USAGE: %s\n", DISPLAY_SYNTAX);
|
||||
goto end;
|
||||
} else {
|
||||
switch_core_session_message_t msg = { 0 };
|
||||
switch_core_session_t *lsession = NULL;
|
||||
|
@ -2322,6 +2323,8 @@ SWITCH_STANDARD_API(uuid_display_function)
|
|||
stream->write_function(stream, "-ERR Operation Failed\n");
|
||||
}
|
||||
|
||||
end:
|
||||
|
||||
switch_safe_free(mycmd);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue