mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-09 11:55:52 -04:00
Retry fetching remote text file when downloading had been terminated
This commit is contained in:
parent
481b47bf10
commit
fc3f2e045b
@ -126,7 +126,7 @@ public final class GetTask extends TaskResult<String> {
|
||||
}
|
||||
|
||||
if (size > 0 && size != read)
|
||||
throw new IllegalStateException("Not completed! Readed: " + read + ", total size: " + size);
|
||||
throw new IOException("Not completed! Readed: " + read + ", total size: " + size);
|
||||
|
||||
String result = baos.toString(charset.name());
|
||||
setResult(result);
|
||||
|
Loading…
x
Reference in New Issue
Block a user