aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_iax2.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-06 17:41:01 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-06 17:41:01 +0000
commit1647d89134193e7c69289f3c934f479e0b8f6271 (patch)
treeb47cdc94ab31bf060f89439a7e46c40a04584557 /channels/chan_iax2.c
parent631ac6a95567bcfe9905d476ec4ecdfab2fc94ad (diff)
Merged revisions 192808 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r192808 | file | 2009-05-06 14:38:51 -0300 (Wed, 06 May 2009) | 10 lines 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: http://svn.digium.com/svn/asterisk/branches/1.6.2@192810 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_iax2.c')
-rw-r--r--channels/chan_iax2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 114afe4c9..8b6e044c0 100644
--- a/channels/chan_iax2.c
+++ b/channels/chan_iax2.c
@@ -12637,6 +12637,9 @@ static int load_module(void)
}
if (set_config(config, 0) == -1) {
+ if (timer) {
+ ast_timer_close(timer);
+ }
return AST_MODULE_LOAD_DECLINE;
}