spa: support: loop: do not return early in case of an error

It is expected that `nfds` is non-negative in the vast majority
of cases, so hopefully the runtime performance will not be
significantly affected by removing the check. This way
it is guaranteed that the destroy list is processed.
This commit is contained in:
Barnabás Pőcze 2022-02-19 11:58:13 +01:00 committed by Wim Taymans
parent 275e23a34d
commit a4e7042176

View file

@ -350,9 +350,6 @@ static int loop_iterate(void *object, int timeout)
spa_loop_control_hook_after(&impl->hooks_list);
if (SPA_UNLIKELY(nfds < 0))
return nfds;
/* first we set all the rmasks, then call the callbacks. The reason is that
* some callback might also want to look at other sources it manages and
* can then reset the rmask to suppress the callback */