FS-4728
This commit is contained in:
parent
a20aec182a
commit
7c644a271e
|
@ -2421,16 +2421,16 @@ SWITCH_STANDARD_API(reload_function)
|
||||||
|
|
||||||
switch_mutex_lock(reload_mutex);
|
switch_mutex_lock(reload_mutex);
|
||||||
|
|
||||||
|
if (switch_xml_reload(&err) == SWITCH_STATUS_SUCCESS) {
|
||||||
|
stream->write_function(stream, "+OK Reloading XML\n");
|
||||||
|
}
|
||||||
|
|
||||||
if (switch_loadable_module_unload_module((char *) SWITCH_GLOBAL_dirs.mod_dir, (char *) cmd, force, &err) == SWITCH_STATUS_SUCCESS) {
|
if (switch_loadable_module_unload_module((char *) SWITCH_GLOBAL_dirs.mod_dir, (char *) cmd, force, &err) == SWITCH_STATUS_SUCCESS) {
|
||||||
stream->write_function(stream, "+OK module unloaded\n");
|
stream->write_function(stream, "+OK module unloaded\n");
|
||||||
} else {
|
} else {
|
||||||
stream->write_function(stream, "-ERR unloading module [%s]\n", err);
|
stream->write_function(stream, "-ERR unloading module [%s]\n", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (switch_xml_reload(&err) == SWITCH_STATUS_SUCCESS) {
|
|
||||||
stream->write_function(stream, "+OK Reloading XML\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (switch_loadable_module_load_module((char *) SWITCH_GLOBAL_dirs.mod_dir, (char *) cmd, SWITCH_TRUE, &err) == SWITCH_STATUS_SUCCESS) {
|
if (switch_loadable_module_load_module((char *) SWITCH_GLOBAL_dirs.mod_dir, (char *) cmd, SWITCH_TRUE, &err) == SWITCH_STATUS_SUCCESS) {
|
||||||
stream->write_function(stream, "+OK module loaded\n");
|
stream->write_function(stream, "+OK module loaded\n");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue