Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
d3895b6cf7
1 changed files with 11 additions and 8 deletions
|
@ -313,6 +313,7 @@ public class DownloadFileHelper {
|
|||
throws IOException {
|
||||
targetFile.getParentFile().mkdirs();
|
||||
FileOutputStream out = new FileOutputStream(targetFile);
|
||||
try {
|
||||
int read;
|
||||
byte[] buffer = new byte[BUFFER_SIZE];
|
||||
int remaining = length;
|
||||
|
@ -321,7 +322,9 @@ public class DownloadFileHelper {
|
|||
remaining -= countIS.getAndClearReadCount();
|
||||
progress.remaining(remaining / 1024);
|
||||
}
|
||||
} finally {
|
||||
out.close();
|
||||
}
|
||||
targetFile.setLastModified(de.dateModified);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue