suspend-node: remove idle handler in destroy

Or else the idle handler might go off when we are already destroyed.
This commit is contained in:
Wim Taymans 2020-04-29 16:41:41 +02:00
parent d8d4e2f335
commit 0380c6d91e

View file

@ -184,6 +184,7 @@ handle_node(struct impl *impl, struct sm_object *object)
static void destroy_node(struct impl *impl, struct node *node)
{
remove_idle_timeout(node);
spa_list_remove(&node->link);
spa_hook_remove(&node->listener);
sm_object_remove_data((struct sm_object*)node->obj, SESSION_KEY);