修复kotlin设置配置文件ide报错的问题 https://github.com/AriaLyy/Aria/issues/286
This commit is contained in:
@@ -92,7 +92,7 @@ public final class Util {
|
||||
byte[] buffer = new byte[bufferSize > 0 ? bufferSize : DEFAULT_COPY_BUFFER_SIZE];
|
||||
|
||||
try {
|
||||
while ((numBytes = source.read(buffer)) != -1) {
|
||||
while (!Thread.currentThread().isInterrupted() && (numBytes = source.read(buffer)) != -1) {
|
||||
// Technically, some read(byte[]) methods may return 0 and we cannot
|
||||
// accept that as an indication of EOF.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user