mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
cross t's and dot i's
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7075 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -187,7 +187,7 @@ static switch_status_t timer_check(switch_timer_t *timer)
|
||||
{
|
||||
timer_private_t *private_info = timer->private_info;
|
||||
switch_status_t status = SWITCH_STATUS_SUCCESS;
|
||||
switch_size_t diff;
|
||||
|
||||
|
||||
if (globals.RUNNING != 1 || !private_info->ready) {
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
@@ -196,12 +196,12 @@ static switch_status_t timer_check(switch_timer_t *timer)
|
||||
check_roll();
|
||||
|
||||
if (TIMER_MATRIX[timer->interval].tick < private_info->reference) {
|
||||
diff = private_info->reference - TIMER_MATRIX[timer->interval].tick;
|
||||
timer->diff = private_info->reference - TIMER_MATRIX[timer->interval].tick;
|
||||
} else {
|
||||
diff = 0;
|
||||
timer->diff = 0;
|
||||
}
|
||||
|
||||
if (diff) {
|
||||
if (timer->diff) {
|
||||
status = SWITCH_STATUS_FALSE;
|
||||
} else {
|
||||
timer_step(timer);
|
||||
|
Reference in New Issue
Block a user