mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
It helps if we actually assign the listener to the pool.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377352 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -623,6 +623,8 @@ struct ast_threadpool *ast_threadpool_create(struct ast_threadpool_listener *lis
|
||||
|
||||
pool = tps_listener->private_data;
|
||||
pool->tps = tps;
|
||||
ao2_ref(listener, +1);
|
||||
pool->listener = listener;
|
||||
ast_threadpool_set_size(pool, initial_size);
|
||||
return pool;
|
||||
}
|
||||
|
Reference in New Issue
Block a user