mirror of
https://github.com/FliegendeWurst/KIT-ILIAS-downloader.git
synced 2024-08-28 04:04:18 +00:00
Actually wait for queued network jobs
This commit is contained in:
parent
af0743184f
commit
20fe42d24a
@ -350,7 +350,7 @@ async fn main() {
|
||||
*TASKS_QUEUED.lock() -= 1;
|
||||
});
|
||||
}
|
||||
while *TASKS_RUNNING.lock() > 0 {
|
||||
while *TASKS_QUEUED.lock() > 0 {
|
||||
tokio::time::delay_for(Duration::from_millis(500)).await;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user