summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-rw-r--r--res/res_musiconhold.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index bf7635ea2..4e5056358 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1808,7 +1808,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;
}