Some more network changes.

This commit is contained in:
OBattler
2022-02-20 02:00:23 +01:00
parent 4d56f89fb2
commit b4c1e801c5
3 changed files with 17 additions and 8 deletions

View File

@@ -366,7 +366,10 @@ poll_thread(void *arg)
network_poll();
/* Stop processing if asked to. */
if (slirp->stop) break;
if (slirp->stop) {
network_wait(0);
break;
}
/* See if there is any work. */
slirp_tic(slirp);
@@ -377,12 +380,12 @@ poll_thread(void *arg)
if (tx)
network_do_tx();
/* Release ownership of the queue. */
network_wait(0);
/* If we did not get anything, wait a while. */
if (!tx)
thread_wait_event(evt, 10);
/* Release ownership of the queue. */
network_wait(0);
}
/* No longer needed. */