diff options
Diffstat (limited to 'main/taskprocessor.c')
-rw-r--r-- | main/taskprocessor.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/taskprocessor.c b/main/taskprocessor.c index a1e54a3b4..3ba544292 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -224,10 +224,15 @@ static const struct ast_taskprocessor_listener_callbacks default_listener_callba .destroy = default_listener_destroy, }; -/*! \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 */ |