mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
616519d704
commit
235b155b75
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue