mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Address further review feedback from David Lee.
* Clarify some documentation * Change copyright date of taskprocessor files * Address potential issue of creating taskprocessor with listener if taskprocessor with that name exists already git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@379124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -613,7 +613,9 @@ static void threadpool_tps_shutdown(struct ast_taskprocessor_listener *listener)
|
||||
{
|
||||
struct ast_threadpool *pool = listener->user_data;
|
||||
|
||||
pool->listener->callbacks->shutdown(pool->listener);
|
||||
if (pool->listener && pool->listener->callbacks->shutdown) {
|
||||
pool->listener->callbacks->shutdown(pool->listener);
|
||||
}
|
||||
ao2_cleanup(pool->active_threads);
|
||||
ao2_cleanup(pool->idle_threads);
|
||||
ao2_cleanup(pool->zombie_threads);
|
||||
|
Reference in New Issue
Block a user