diff --git a/Cargo.lock b/Cargo.lock index f5d2c0c..12b368f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -330,7 +330,7 @@ dependencies = [ [[package]] name = "mangafetchi" -version = "0.1.2" +version = "0.1.3" dependencies = [ "quick-xml", "reqwest", diff --git a/Cargo.toml b/Cargo.toml index 33386c4..e905225 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mangafetchi" -version = "0.1.2" +version = "0.1.3" authors = ["blank X "] edition = "2018" diff --git a/src/commands/download.rs b/src/commands/download.rs index 4b34b0b..49f9be9 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs @@ -65,13 +65,17 @@ pub async fn run(mut args: env::Args) { } if !to_extend.is_empty() { cloned_mutex.lock().await.extend(to_extend); - } - if handles.is_none() { - handles = Some(summon_handles(client.clone(), cloned_mutex).await); + if handles.is_none() { + handles = Some(summon_handles(client.clone(), cloned_mutex).await); + } } } - for handle in handles.unwrap() { - handle.await.unwrap(); + if handles.is_some() { + for handle in handles.unwrap() { + handle.await.unwrap(); + } + } else { + eprintln!("Everything has already been downloaded"); } }