summaryrefslogtreecommitdiff
path: root/main/presencestate.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/presencestate.c')
-rw-r--r--main/presencestate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/presencestate.c b/main/presencestate.c
index 2eab99177..45174d5a1 100644
--- a/main/presencestate.c
+++ b/main/presencestate.c
@@ -314,8 +314,7 @@ static void presence_state_engine_cleanup(void)
{
ao2_cleanup(presence_state_topic_all);
presence_state_topic_all = NULL;
- ao2_cleanup(presence_state_topic_cached);
- presence_state_topic_cached = NULL;
+ presence_state_topic_cached = stasis_caching_unsubscribe_and_join(presence_state_topic_cached);
STASIS_MESSAGE_TYPE_CLEANUP(ast_presence_state_message_type);
}