mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-24 06:36:12 +00:00
* StoredQueue.java
protect isEmpty() like size() for access after backing BDB closed
This commit is contained in:
@@ -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