Attempt to make the main thread wait for network mutex.

This commit is contained in:
OBattler
2022-02-20 01:22:28 +01:00
parent ee5630f9c4
commit bd32abf94e
3 changed files with 12 additions and 1 deletions

View File

@@ -348,7 +348,7 @@ network_rx_queue(void *priv)
{
int ret = 1;
if (network_rx_pause) {
if (network_rx_pause || !thread_test_mutex(network_mutex)) {
timer_on_auto(&network_rx_queue_timer, 0.762939453125 * 2.0 * 128.0);
return;
}