potential bug repair
This commit is contained in:
parent
c2048c5039
commit
458ab01822
@ -71,11 +71,11 @@ public class HashingInputStream extends FilterInputStream {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
|
latch.countDown();
|
||||||
|
|
||||||
if(in.available() == 0) hashBuilder.update(path, hasher.getValue());
|
if(in.available() == 0) hashBuilder.update(path, hasher.getValue());
|
||||||
else brokenFileHandler.handle(path, new DataLeftException(in.available()));
|
else brokenFileHandler.handle(path, new DataLeftException(in.available()));
|
||||||
|
|
||||||
latch.countDown();
|
|
||||||
|
|
||||||
super.close();
|
super.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user