diff options
-rw-r--r-- | res/res_musiconhold.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 2ac5081b9..669fb9bc9 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1821,7 +1821,8 @@ static char *handle_cli_moh_reload(struct ast_cli_entry *e, int cmd, struct ast_ if (a->argc != e->args) return CLI_SHOWUSAGE; - reload(); + /* The module loader will prevent concurrent reloads from occurring, so we delegate */ + ast_module_reload("res_musiconhold"); return CLI_SUCCESS; } |