Fix some timer state corruption.
authorRussell Bryant <russell@russellbryant.com>
Mon, 11 May 2009 22:04:40 +0000 (22:04 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 11 May 2009 22:04:40 +0000 (22:04 +0000)
commit174697b7d15f49cb432f84c3f4465aa8bbce0ebb
tree0dc0bc096cc850238ca3f620a126f20ce0515aef
parent52541f5aeb7db910f943f8b6909ef40437cf34e9
Fix some timer state corruption.

In res_timer_timerfd, handle the case that set_rate gets called while a timer
is still in continuous mode.  In this case, we want to remember the configured
rate, but not actually set it until continuous mode has been disabled.

Thanks to dvossel for finding and helping to debug the problem.

(closes issue #15080)
Reported by: dvossel
Tested by: dvossel

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@193718 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_timing_timerfd.c