]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 1a768de2f79d6e43fc773fd843047c87027d7b9e..fc183b40969fe1f33b4b92e009293bbb44329759 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)