mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-17 04:06:59 +00:00
[mod_callcenter] Fix dead nested assignments in cc_config_api_function
This commit is contained in:
parent
19a7debc1b
commit
716a21b0b5
@ -3820,8 +3820,7 @@ SWITCH_STANDARD_API(cc_config_api_function)
|
|||||||
goto done;
|
goto done;
|
||||||
} else {
|
} else {
|
||||||
const char *queue_name = argv[0 + initial_argc];
|
const char *queue_name = argv[0 + initial_argc];
|
||||||
cc_queue_t *queue = NULL;
|
if (load_queue(queue_name, SWITCH_TRUE, SWITCH_TRUE, NULL)) {
|
||||||
if ((queue = load_queue(queue_name, SWITCH_TRUE, SWITCH_TRUE, NULL))) {
|
|
||||||
stream->write_function(stream, "%s", "+OK\n");
|
stream->write_function(stream, "%s", "+OK\n");
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "%s", "-ERR Invalid Queue not found!\n");
|
stream->write_function(stream, "%s", "-ERR Invalid Queue not found!\n");
|
||||||
@ -3845,9 +3844,8 @@ SWITCH_STANDARD_API(cc_config_api_function)
|
|||||||
goto done;
|
goto done;
|
||||||
} else {
|
} else {
|
||||||
const char *queue_name = argv[0 + initial_argc];
|
const char *queue_name = argv[0 + initial_argc];
|
||||||
cc_queue_t *queue = NULL;
|
|
||||||
destroy_queue(queue_name);
|
destroy_queue(queue_name);
|
||||||
if ((queue = load_queue(queue_name, SWITCH_TRUE, SWITCH_TRUE, NULL))) {
|
if (load_queue(queue_name, SWITCH_TRUE, SWITCH_TRUE, NULL)) {
|
||||||
stream->write_function(stream, "%s", "+OK\n");
|
stream->write_function(stream, "%s", "+OK\n");
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "%s", "-ERR Invalid Queue not found!\n");
|
stream->write_function(stream, "%s", "-ERR Invalid Queue not found!\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user