mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Fix destruction order assert for stasis_bridging
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@389454 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -321,15 +321,17 @@ struct ast_json *ast_bridge_snapshot_to_json(const struct ast_bridge_snapshot *s
|
|||||||
|
|
||||||
void ast_stasis_bridging_shutdown(void)
|
void ast_stasis_bridging_shutdown(void)
|
||||||
{
|
{
|
||||||
|
ao2_cleanup(bridge_topic_all);
|
||||||
|
bridge_topic_all = NULL;
|
||||||
|
bridge_topic_all_cached = stasis_caching_unsubscribe_and_join(
|
||||||
|
bridge_topic_all_cached);
|
||||||
|
ao2_cleanup(bridge_topic_pool);
|
||||||
|
bridge_topic_pool = NULL;
|
||||||
|
|
||||||
STASIS_MESSAGE_TYPE_CLEANUP(ast_bridge_snapshot_type);
|
STASIS_MESSAGE_TYPE_CLEANUP(ast_bridge_snapshot_type);
|
||||||
STASIS_MESSAGE_TYPE_CLEANUP(ast_bridge_merge_message_type);
|
STASIS_MESSAGE_TYPE_CLEANUP(ast_bridge_merge_message_type);
|
||||||
STASIS_MESSAGE_TYPE_CLEANUP(ast_channel_entered_bridge_type);
|
STASIS_MESSAGE_TYPE_CLEANUP(ast_channel_entered_bridge_type);
|
||||||
STASIS_MESSAGE_TYPE_CLEANUP(ast_channel_left_bridge_type);
|
STASIS_MESSAGE_TYPE_CLEANUP(ast_channel_left_bridge_type);
|
||||||
ao2_cleanup(bridge_topic_all);
|
|
||||||
bridge_topic_all = NULL;
|
|
||||||
bridge_topic_all_cached = stasis_caching_unsubscribe(bridge_topic_all_cached);
|
|
||||||
ao2_cleanup(bridge_topic_pool);
|
|
||||||
bridge_topic_pool = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \brief snapshot ID getter for caching topic */
|
/*! \brief snapshot ID getter for caching topic */
|
||||||
|
Reference in New Issue
Block a user