fix regression from r12861 to speed up loop but did not add factor of 10 to counter for expire checking code

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15428 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-11-11 16:00:30 +00:00
parent fa33d47640
commit 2c197896c1

View File

@ -958,7 +958,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_worker_thread_run(switch_thread_t *thread
}
}
if (++loops >= 100) {
if (++loops >= 1000) {
if (++ireg_loops >= IREG_SECONDS) {
sofia_reg_check_expire(profile, switch_epoch_time_now(NULL), 0);
ireg_loops = 0;