mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-09-12 21:57:19 -04:00
Clearing it when the last cancellation settles reopens a worse window than it closes. A queue parked in WaitForDailyLimitAsync only re-reads the flag every poll interval, so pressing Cancel All during a limit pause with nothing in flight lets the drain finish and clear the flag well before the gate wakes - it sees false and resumes the book that was just cancelled. It is cleared in QueueLoop's finally instead, so it lasts exactly as long as the run it belongs to. Queueing more work still withdraws an earlier Cancel All, which is what AddToQueue's clear is for.