fix performance problem about downloading file.
This commit is contained in:
@@ -131,7 +131,7 @@ public class FileDownloadTask extends Task implements PreviousResult<File>, Prev
|
|||||||
tempFile.createNewFile();
|
tempFile.createNewFile();
|
||||||
|
|
||||||
// Open file and seek to the end of it.
|
// Open file and seek to the end of it.
|
||||||
file = new RandomAccessFile(tempFile, "rwd");
|
file = new RandomAccessFile(tempFile, "rw");
|
||||||
|
|
||||||
stream = connection.getInputStream();
|
stream = connection.getInputStream();
|
||||||
int lastDownloaded = 0;
|
int lastDownloaded = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user