Skip to content

Commit

Permalink
RUN-2227: Fix more ScriptedIdleTaskController mismatches (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
Domiii committed Jun 22, 2023
1 parent baf03a9 commit b5cb809
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ class CORE_EXPORT ScriptedIdleTaskController
IdleDeadline::CallbackType);

// [RUN-1335] Allow clearing callbacks upon |Document::Shutdown|.
void ClearCallbacks() { idle_tasks_.clear(); }
void ClearCallbacks() {
idle_tasks_.clear();
pending_timeouts_.clear();
}
// [RUN-1335] We want to check for callback existence before firing.
bool ContainsCallback(CallbackId id) { return idle_tasks_.Contains(id); }

Expand Down

0 comments on commit b5cb809

Please sign in to comment.