fixup "Moved from poll to select"

This commit is contained in:
Andreas Eversberg 2023-10-16 18:19:54 +02:00
parent 323d7079a4
commit d88ef1a645
1 changed files with 8 additions and 5 deletions

View File

@ -280,7 +280,7 @@ int main(int argc, char *argv[])
signal(SIGPIPE, sighandler);
while (!quit) {
int w;
int work;
c = get_char();
if (c == 3) {
/* quit */
@ -293,11 +293,14 @@ int main(int argc, char *argv[])
process_timer();
alsa_work(telephone_ep);
do {
w = 0;
w |= osmo_cc_handle();
w |= ui_work(telephone_ep, c);
work = 0;
work |= osmo_cc_handle();
work |= ui_work(telephone_ep, c);
c = 0;
} while (w);
work |= (process_timer() == 0.0);
work |= osmo_fd_select(0.0);
} while (work);
usleep(1000);
}