mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +00:00
* StoredQueue.java
protect isEmpty() like size() for access after backing BDB closed
This commit is contained in:
1 parent
402b9a45a6
commit
df1d064598
1 file changed
+5
-1
@@ -103,7 +103,11 @@ public class StoredQueue<E extends Serializable> extends AbstractQueue<E> {
|
||||
if(peekItem!=null) {
|
||||
return false;
|
||||
}
|
||||
return queueMap.isEmpty();
|
||||
try {
|
||||
return queueMap.isEmpty();
|
||||
} catch (IllegalStateException de) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean offer(E o) {
|
||||
|
||||
Reference in new issue
Block a user