potential bug repair

This commit is contained in:
Szum123321 2022-11-29 22:35:15 +01:00
parent c2048c5039
commit 458ab01822

View File

@ -71,11 +71,11 @@ public class HashingInputStream extends FilterInputStream {
@Override
public void close() throws IOException {
latch.countDown();
if(in.available() == 0) hashBuilder.update(path, hasher.getValue());
else brokenFileHandler.handle(path, new DataLeftException(in.available()));
latch.countDown();
super.close();
}
}