fix performance problem about downloading file.

This commit is contained in:
huanghongxun
2015-11-23 18:28:16 +08:00
parent c76b0e0ffb
commit 151b865dc5
2 changed files with 1 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ public class FileDownloadTask extends Task implements PreviousResult<File>, Prev
tempFile.createNewFile();
// Open file and seek to the end of it.
file = new RandomAccessFile(tempFile, "rwd");
file = new RandomAccessFile(tempFile, "rw");
stream = connection.getInputStream();
int lastDownloaded = 0;