mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
data-loop: small cleanup
So that we exit the function via only one path.
This commit is contained in:
parent
9abcff8312
commit
1f6a0635ea
1 changed files with 4 additions and 2 deletions
|
|
@ -38,8 +38,10 @@ int pw_data_loop_wait(struct pw_data_loop *this, int timeout)
|
|||
int res;
|
||||
|
||||
while (true) {
|
||||
if (!this->running)
|
||||
return -ECANCELED;
|
||||
if (!this->running) {
|
||||
res = -ECANCELED;
|
||||
break;
|
||||
}
|
||||
if ((res = pw_loop_iterate(this->loop, timeout)) < 0) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue