mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
FS-3313 --resolve Come To ClueCon 2011 http://www.cluecon.com
This commit is contained in:
parent
01d0250ee6
commit
0ac088e32c
@ -1327,6 +1327,10 @@ void *SWITCH_THREAD_FUNC sofia_profile_worker_thread_run(switch_thread_t *thread
|
|||||||
|
|
||||||
switch_interval_time_t sleepy_time = !statements ? 1000000 : switch_micro_time_now() - last_commit - profile->trans_timeout*1000;
|
switch_interval_time_t sleepy_time = !statements ? 1000000 : switch_micro_time_now() - last_commit - profile->trans_timeout*1000;
|
||||||
|
|
||||||
|
if (sleepy_time < 1000 || sleepy_time > 1000000) {
|
||||||
|
sleepy_time = 1000;
|
||||||
|
}
|
||||||
|
|
||||||
if (sql || (switch_queue_pop_timeout(profile->sql_queue, &pop, sleepy_time) == SWITCH_STATUS_SUCCESS && pop)) {
|
if (sql || (switch_queue_pop_timeout(profile->sql_queue, &pop, sleepy_time) == SWITCH_STATUS_SUCCESS && pop)) {
|
||||||
switch_size_t newlen;
|
switch_size_t newlen;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user