summaryrefslogtreecommitdiff
path: root/channels/chan_motif.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_motif.c')
-rw-r--r--channels/chan_motif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/channels/chan_motif.c b/channels/chan_motif.c
index e5e72283a..48f1b1fc7 100644
--- a/channels/chan_motif.c
+++ b/channels/chan_motif.c
@@ -2801,7 +2801,11 @@ end:
/*! \brief Reload module */
static int reload(void)
{
- return aco_process_config(&cfg_info, 1);
+ if (aco_process_config(&cfg_info, 1) == ACO_PROCESS_ERROR) {
+ return -1;
+ }
+
+ return 0;
}
/*! \brief Unload the jingle channel from Asterisk */