aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_mgcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_mgcp.c')
-rw-r--r--channels/chan_mgcp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_mgcp.c b/channels/chan_mgcp.c
index 05ab81edf..1a27fc8f0 100644
--- a/channels/chan_mgcp.c
+++ b/channels/chan_mgcp.c
@@ -4262,7 +4262,8 @@ static int load_module(void)
/* And start the monitor for the first time */
restart_monitor();
- }
+ } else
+ return AST_MODULE_LOAD_DECLINE;
return res;
}