Skip to content

Commit 21d7b39

Browse files
committed
Check cancelation flag.
1 parent a217d90 commit 21d7b39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/java/ch/cyberduck/core/io/CRC32ChecksumCompute.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public Checksum compute(final InputStream in, final TransferStatus status) throw
3636
byte[] buffer = new byte[16384];
3737
int bytesRead;
3838
while((bytesRead = normalized.read(buffer, 0, buffer.length)) != -1) {
39+
status.validate();
3940
crc32.update(buffer, 0, bytesRead);
4041
}
4142
}

0 commit comments

Comments
 (0)