FSCORE-472

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15213 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-10-23 16:33:55 +00:00
parent 8eadcd50ca
commit aa42215fb6
2 changed files with 3 additions and 5 deletions

View File

@ -61,9 +61,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_timer_init(switch_timer_t *timer, co
switch_set_flag(timer, SWITCH_TIMER_FLAG_FREE_POOL);
}
timer->timer_interface->timer_init(timer);
return SWITCH_STATUS_SUCCESS;
return timer->timer_interface->timer_init(timer);
}
SWITCH_DECLARE(switch_status_t) switch_core_timer_next(switch_timer_t *timer)

View File

@ -233,8 +233,8 @@ static switch_status_t timer_init(switch_timer_t *timer)
while (globals.STARTED == 0) {
do_sleep(100000);
if (++sanity == 10) {
break;
if (++sanity == 300) {
abort();
}
}