FSCORE-639 with some additional changes

This commit is contained in:
Anthony Minessale
2010-07-29 17:41:23 -05:00
parent 5c6a1f44ad
commit d6d7773ca4
6 changed files with 144 additions and 66 deletions

View File

@@ -550,10 +550,7 @@ static switch_status_t timer_sync(switch_timer_t *timer)
private_info->reference = timer->tick = TIMER_MATRIX[timer->interval].tick;
/* apply timestamp */
if (timer_step(timer) == SWITCH_STATUS_SUCCESS) {
/* push the reference into the future to prevent collision */
private_info->reference++;
}
timer_step(timer);
return SWITCH_STATUS_SUCCESS;
}