fix performance problem about downloading file.

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

No files matched your search

@@ -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;