potential bug repair

2.x
Szum123321 2022-11-29 22:35:15 +01:00
parent c2048c5039
commit 458ab01822
1 changed files with 2 additions and 2 deletions

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();
}
}