From 0824023866211883df78dff2a8a3af121eca820d Mon Sep 17 00:00:00 2001 From: Boris-Chengbiao Zhou Date: Thu, 2 Mar 2017 18:43:34 +0100 Subject: [PATCH] Don't retry if not necessary... --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index d063d21..c8321ce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -191,6 +191,7 @@ fn download_presentation(presentation: &Presentation, out_dir: &Path, auth: &str let try = try_download(presentation, auth); if try.is_some() { tuple = try; + break; } tries += 1; }