Closed bekzod closed 6 years ago
this is also affects 1.3.3
my assumption was wrong, indexes in targetQueue
could be messed when items are canceled or added during flush this fixes it and here is fix for 1.3.3 https://github.com/BackburnerJS/backburner.js/pull/295
~possible bugfix,
targetQueues
should be cleared only when_queue
moved to_queueBeingFlushed
elsequeueIndex
es could be messed up https://github.com/BackburnerJS/backburner.js/blob/master/lib/backburner/queue.ts#L152~