From 484ffac41c4ef0c316cafd0c8f4190494d4c832c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 16 Feb 2010 20:29:10 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16662 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 38846c0c48..876af6e831 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1196,8 +1196,8 @@ void *SWITCH_THREAD_FUNC sofia_profile_worker_thread_run(switch_thread_t *thread uint32_t itterations = 0; switch_size_t len = 0; - //switch_mutex_lock(profile->ireg_mutex); - + switch_mutex_lock(profile->ireg_mutex); + //sofia_glue_actually_execute_sql(profile, "begin;\n", NULL); while (switch_queue_trypop(profile->sql_queue, &pop) == SWITCH_STATUS_SUCCESS && pop) { @@ -1223,9 +1223,9 @@ void *SWITCH_THREAD_FUNC sofia_profile_worker_thread_run(switch_thread_t *thread } //printf("TRANS:\n%s\n", sqlbuf); - sofia_glue_actually_execute_sql_trans(profile, sqlbuf, profile->ireg_mutex); + sofia_glue_actually_execute_sql_trans(profile, sqlbuf, NULL); //sofia_glue_actually_execute_sql(profile, "commit;\n", NULL); - //switch_mutex_unlock(profile->ireg_mutex); + switch_mutex_unlock(profile->ireg_mutex); loop_count = 0; } } else {