spa: support: loop: assert loop is not polling when destroyed

Assert that the loop is not polling when `impl_clear()` is called.
This commit is contained in:
Barnabás Pőcze 2022-03-05 22:00:18 +01:00 committed by Wim Taymans
parent 616519d704
commit 235b155b75

View file

@ -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);