]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Another missing lock from e9bde2eb.
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Sun, 18 Dec 2011 00:59:31 +0000 (19:59 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Sun, 18 Dec 2011 00:59:31 +0000 (19:59 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 99897fb3fdb51da113e8d8105c8773dda4ec9824..c1e4031b369a8ed37b1a62389cf37284141e05bd 100644 (file)
@@ -1110,7 +1110,7 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
                                                free(buf);
                                        }
 
-                                       sofia_glue_execute_sql_callback(profile, NULL, sql, sofia_presence_sub_callback, &helper);
+                                       sofia_glue_execute_sql_callback(profile, profile->ireg_mutex, sql, sofia_presence_sub_callback, &helper);
                                        switch_safe_free(sql);
                                        
                                        sql = switch_mprintf("update sip_subscriptions set version=version+1 where event='dialog' and sub_to_user='%q' "