diff --git a/spa/plugins/support/loop.c b/spa/plugins/support/loop.c index ef52c32bf..c1d1494cb 100644 --- a/spa/plugins/support/loop.c +++ b/spa/plugins/support/loop.c @@ -387,6 +387,9 @@ static int loop_iterate(void *object, int timeout) * can then reset the rmask to suppress the callback */ for (i = 0; i < nfds; i++) { struct spa_source *s = ep[i].data; + + spa_assert(s->loop == &impl->loop); + s->rmask = ep[i].events; /* already active in another iteration of the loop, * remove it from that iteration */