diff options
author | Mark Michelson <mmichelson@digium.com> | 2012-12-06 20:45:42 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2012-12-06 20:45:42 +0000 |
commit | 944540292567f0349bd465bd5ae86ff114364ad1 (patch) | |
tree | fdcf6e7de96786d99933a64a0c7c66ac0c1616c6 | |
parent | c32634e0dd003683cbcd95046c58e9418cfff12d (diff) |
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
-rw-r--r-- | main/threadpool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/threadpool.c b/main/threadpool.c index bc0187f1e..1da0d0766 100644 --- a/main/threadpool.c +++ b/main/threadpool.c @@ -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; } |