Try to fix auto update

This commit is contained in:
huangyuhui
2017-02-24 19:22:06 +08:00
parent 17eca9dd2f
commit 4b435d4ac3
2 changed files with 7 additions and 2 deletions

View File

@@ -212,6 +212,7 @@ public class FileDownloadTask extends Task implements PreviousResult<File>, Prev
ppl.onProgressProviderDone(this);
return;
} catch (IOException | IllegalStateException e) {
filePath.delete();
setFailReason(new IOException(C.i18n("download.failed") + " " + url, e));
} finally {
closeFiles();