[asterisk-commits] mmichelson: trunk r377975 - /trunk/main/taskprocessor.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 13 09:40:06 CST 2012


Author: mmichelson
Date: Thu Dec 13 09:40:03 2012
New Revision: 377975

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377975
Log:
Re-add taskprocessor cleanup code that was removed by the UUID merge.


Modified:
    trunk/main/taskprocessor.c

Modified: trunk/main/taskprocessor.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/taskprocessor.c?view=diff&rev=377975&r1=377974&r2=377975
==============================================================================
--- trunk/main/taskprocessor.c (original)
+++ trunk/main/taskprocessor.c Thu Dec 13 09:40:03 2012
@@ -122,10 +122,15 @@
 	AST_CLI_DEFINE(cli_tps_report, "List instantiated task processors and statistics"),
 };
 
-/*! \internal \brief Clean up resources on Asterisk shutdown */
+/*!
+ * \internal
+ * \brief Clean up resources on Asterisk shutdown
+ */
 static void tps_shutdown(void)
 {
+	ast_cli_unregister_multiple(taskprocessor_clis, ARRAY_LEN(taskprocessor_clis));
 	ao2_t_ref(tps_singletons, -1, "Unref tps_singletons in shutdown");
+	tps_singletons = NULL;
 }
 
 /* initialize the taskprocessor container and register CLI operations */




More information about the asterisk-commits mailing list