Some more network changes.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user