Fix a bug where a timer would be created but not acknowledged.

This scenario crept up if chan_iax2 was loaded with no configuration file present.
It would create a timer and tell it to go at an interval but the thread that normally
acknowledges it would not be created because no configuration file was present. The timer
will now be closed if no configuration file is present.

(closes issue #15014)
Reported by: madkins


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@192808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.6
Joshua Colp 17 years ago
parent 829807cd2c
commit 9936f0ca14

@ -12685,6 +12685,9 @@ static int load_module(void)
}
if (set_config(config, 0) == -1) {
if (timer) {
ast_timer_close(timer);
}
return AST_MODULE_LOAD_DECLINE;
}

Loading…
Cancel
Save