mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-31 18:44:54 +00:00
FS-9034 revert commit in sofia.c that prevents register in new thread
This commit is contained in:
parent
2c03025479
commit
465a0b6f1d
@ -2027,15 +2027,18 @@ void sofia_process_dispatch_event_in_thread(sofia_dispatch_event_t **dep)
|
|||||||
sofia_dispatch_event_t *de = *dep;
|
sofia_dispatch_event_t *de = *dep;
|
||||||
switch_memory_pool_t *pool;
|
switch_memory_pool_t *pool;
|
||||||
//sofia_profile_t *profile = (*dep)->profile;
|
//sofia_profile_t *profile = (*dep)->profile;
|
||||||
|
switch_thread_data_t *td;
|
||||||
|
|
||||||
switch_core_new_memory_pool(&pool);
|
switch_core_new_memory_pool(&pool);
|
||||||
|
|
||||||
*dep = NULL;
|
*dep = NULL;
|
||||||
de->pool = pool;
|
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)
|
void sofia_process_dispatch_event(sofia_dispatch_event_t **dep)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user