mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-13 08:12:44 +10:00
Queue is running game downloads sequentially now
This commit is contained in:
@ -46,8 +46,8 @@ pub async fn start_game_downloads(
|
||||
}
|
||||
};
|
||||
info!("Downloading game");
|
||||
start_game_download(max_threads, download_agent.unwrap()).await?;
|
||||
{
|
||||
start_game_download(max_threads, download_agent.unwrap()).await?;
|
||||
let mut lock = state.lock().unwrap();
|
||||
lock.game_downloads.remove_entry(¤t_id);
|
||||
}
|
||||
@ -70,7 +70,7 @@ pub async fn start_game_download(
|
||||
|
||||
download_agent.generate_job_contexts(&local_manifest, download_agent.version.clone(), download_agent.id.clone()).unwrap();
|
||||
|
||||
download_agent.begin_download(max_threads)?;
|
||||
download_agent.begin_download(max_threads).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user