projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c32634e
)
It helps if we actually assign the listener to the pool.
author
Mark Michelson
<mmichelson@digium.com>
Thu, 6 Dec 2012 20:45:42 +0000
(20:45 +0000)
committer
Mark Michelson
<mmichelson@digium.com>
Thu, 6 Dec 2012 20:45:42 +0000
(20:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377352
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/threadpool.c
patch
|
blob
|
history
diff --git
a/main/threadpool.c
b/main/threadpool.c
index
bc0187f
..
1da0d07
100644
(file)
--- 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;
}