Actually wait for queued network jobs

This commit is contained in:
FliegendeWurst 2020-04-22 13:12:48 +02:00
parent af0743184f
commit 20fe42d24a

View File

@ -350,7 +350,7 @@ async fn main() {
*TASKS_QUEUED.lock() -= 1; *TASKS_QUEUED.lock() -= 1;
}); });
} }
while *TASKS_RUNNING.lock() > 0 { while *TASKS_QUEUED.lock() > 0 {
tokio::time::delay_for(Duration::from_millis(500)).await; tokio::time::delay_for(Duration::from_millis(500)).await;
} }
} }