fix performance problem about downloading file.
This commit is contained in:
1 parent
c76b0e0ffb
commit
151b865dc5
2 files changed
+1
-1
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user