diff options
author | Mark Michelson <mmichelson@digium.com> | 2012-11-16 05:00:42 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2012-11-16 05:00:42 +0000 |
commit | ec68a156191e9d8d6c752b9232b46a29f90a5cbb (patch) | |
tree | 07cd28ab4027df616c6a400a678c6b40cc186f06 /main | |
parent | 2b36cbe2d5a387c088f5c4b3cb7a93f869986ee9 (diff) |
Test that shutdown callback is called when expected.
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@376383 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/taskprocessor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/taskprocessor.c b/main/taskprocessor.c index 49e951f3f..78118edb5 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -565,6 +565,7 @@ struct ast_taskprocessor *ast_taskprocessor_create_with_listener(const char *nam void *ast_taskprocessor_unreference(struct ast_taskprocessor *tps) { struct ast_taskprocessor_listener *listener; + if (!tps) { return NULL; } |