diff --git a/main/taskprocessor.c b/main/taskprocessor.c
index 1a768de2f79d6e43fc773fd843047c87027d7b9e..fc183b40969fe1f33b4b92e009293bbb44329759 100644
--- a/main/taskprocessor.c
+++ b/main/taskprocessor.c
@@ -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)