mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 21:15:47 +01:00
Fix bug.
This commit is contained in:
@@ -234,11 +234,14 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), {
|
||||
|
||||
if (this.queue.length && !this.inQueue) {
|
||||
// removeEntry does not work properly with queues.
|
||||
let removed = 0;
|
||||
for each (let [, entry] in this.queue)
|
||||
if (this.getCacheWriter().hasEntry(entry)) {
|
||||
this.getCacheWriter().removeEntry(entry, false);
|
||||
this.closeWriter();
|
||||
removed++;
|
||||
}
|
||||
if (removed)
|
||||
this.closeWriter();
|
||||
|
||||
this.queue.splice(0).forEach(function ([time, entry]) {
|
||||
if (time && Set.has(this.cache, entry)) {
|
||||
|
||||
Reference in New Issue
Block a user