]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9034 revert commit in sofia.c that prevents register in new thread
authorAntonio <asilva@wirelessmundi.com>
Tue, 17 May 2016 16:40:27 +0000 (18:40 +0200)
committerAntonio <asilva@wirelessmundi.com>
Tue, 17 May 2016 16:40:27 +0000 (18:40 +0200)
src/mod/endpoints/mod_sofia/sofia.c

index f2f458ffec465173a1cc7f227963cfde5fc8fc46..3d5c8fe018dd47eca26e45d7c3ca8a38c3bd75cf 100644 (file)
@@ -2027,15 +2027,18 @@ void sofia_process_dispatch_event_in_thread(sofia_dispatch_event_t **dep)
        sofia_dispatch_event_t *de = *dep;
        switch_memory_pool_t *pool;
        //sofia_profile_t *profile = (*dep)->profile;
-
+       switch_thread_data_t *td;
 
        switch_core_new_memory_pool(&pool);
 
        *dep = NULL;
        de->pool = pool;
 
+       td = switch_core_alloc(pool, sizeof(*td));
+       td->func = sofia_msg_thread_run_once;
+       td->obj = de;
 
-
+       switch_thread_pool_launch_thread(&td);
 }
 
 void sofia_process_dispatch_event(sofia_dispatch_event_t **dep)