potential bug repair
This commit is contained in:
parent
c2048c5039
commit
458ab01822
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user