diff --git a/spa/plugins/support/loop.c b/spa/plugins/support/loop.c index 9f013f21a..ef52c32bf 100644 --- a/spa/plugins/support/loop.c +++ b/spa/plugins/support/loop.c @@ -853,6 +853,8 @@ static int impl_clear(struct spa_handle *handle) spa_log_warn(impl->log, "%p: loop is entered %d times", impl, impl->enter_count); + spa_assert(!impl->polling); + spa_list_consume(source, &impl->source_list, link) loop_destroy_source(impl, &source->source);