MODENDP-215

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13174 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-04-28 03:58:37 +00:00
parent bab2f0bcf5
commit 9441425ef0
3 changed files with 28 additions and 34 deletions

View File

@@ -327,7 +327,7 @@ static switch_status_t timer_next(switch_timer_t *timer)
int delta = (int)(private_info->reference - TIMER_MATRIX[timer->interval].tick);
/* sync up timer if it's not been called for a while otherwise it will return instantly several times until it catches up */
if (delta < 0) {
if (delta < -1) {
private_info->reference = timer->tick = TIMER_MATRIX[timer->interval].tick;
}
timer_step(timer);