mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
parent
d1733aa502
commit
7c32ad7c3d
5 changed files with 28 additions and 28 deletions
|
@ -1117,7 +1117,7 @@ impl Window {
|
|||
pub fn cancel_all_tasks(&self) {
|
||||
let mut ignore_flags = self.ignore_further_async_events.borrow_mut();
|
||||
for task_source_name in TaskSourceName::all() {
|
||||
let flag = ignore_flags.entry(task_source_name).or_insert(Default::default());
|
||||
let mut flag = ignore_flags.entry(task_source_name).or_insert(Default::default());
|
||||
let cancelled = mem::replace(&mut *flag, Default::default());
|
||||
cancelled.store(true, Ordering::Relaxed);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue