summaryrefslogtreecommitdiff
path: root/main/devicestate.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/devicestate.c')
-rw-r--r--main/devicestate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/devicestate.c b/main/devicestate.c
index 2f753bdd7..b2c70f764 100644
--- a/main/devicestate.c
+++ b/main/devicestate.c
@@ -774,6 +774,7 @@ static const char *device_state_get_id(struct stasis_message *message)
static void devstate_cleanup(void)
{
+ devstate_message_sub = stasis_unsubscribe_and_join(devstate_message_sub);
ao2_cleanup(device_state_topic_all);
device_state_topic_all = NULL;
device_state_topic_cached = stasis_caching_unsubscribe_and_join(device_state_topic_cached);