Remove unsafe write of listener member.
authorMark Michelson <mmichelson@digium.com>
Fri, 7 Dec 2012 21:53:18 +0000 (21:53 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 7 Dec 2012 21:53:18 +0000 (21:53 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/team/mmichelson/threadpool@377381 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/taskprocessor.c

index 1a768de..fc183b4 100644 (file)
@@ -474,7 +474,6 @@ static void listener_shutdown(struct ast_taskprocessor_listener *listener)
 {
        listener->callbacks->shutdown(listener);
        ao2_ref(listener->tps, -1);
-       listener->tps = NULL;
 }
 
 struct ast_taskprocessor_listener *ast_taskprocessor_listener_alloc(const struct ast_taskprocessor_listener_callbacks *callbacks)