From 7c644a271e5986f664068b8293d3687b3ddf21e9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 16 Oct 2012 18:50:59 -0400 Subject: [PATCH] FS-4728 --- src/mod/applications/mod_commands/mod_commands.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index df87773c7a..5e96474fd3 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -2421,16 +2421,16 @@ SWITCH_STANDARD_API(reload_function) 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) { stream->write_function(stream, "+OK module unloaded\n"); } else { 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) { stream->write_function(stream, "+OK module loaded\n"); } else {