From df07ccf404bf6a950fe0a0a31f315486c510a2f0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 23 Sep 2012 13:27:13 -0400 Subject: make the assistant retry failed transfers When a transfer fails, the progress info can be used to intelligently retry it. If the transfer managed to make some progress, but did not fully complete, then there's a good chance that a retry will finish it (or at least make more progress). --- Command/Get.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command/Get.hs') diff --git a/Command/Get.hs b/Command/Get.hs index 18153ce88..ab0e60b41 100644 --- a/Command/Get.hs +++ b/Command/Get.hs @@ -66,7 +66,7 @@ getKeyFile key file dest = dispatch =<< Remote.keyPossibilities key either (const False) id <$> Remote.hasKey r key | otherwise = return True docopy r continue = do - ok <- download (Remote.uuid r) key (Just file) $ do + ok <- download (Remote.uuid r) key (Just file) noRetry $ do showAction $ "from " ++ Remote.name r Remote.retrieveKeyFile r key (Just file) dest if ok then return ok else continue -- cgit v1.2.3