@@ -110,7 +110,7 @@ function queueFlush() {
export function invalidateJob(job: SchedulerJob) {
const i = queue.indexOf(job)
- if (i > -1) {
+ if (i > flushIndex) {
queue.splice(i, 1)
}