mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make RunnableWrapper store an Option<Arc<AtomicBool>>
This makes WorkerGlobalScope::get_runnable_wrapper not panic anymore when the worker is a ServiceWorkerGlobalScope.
This commit is contained in:
parent
991801488c
commit
ca8c6fb072
3 changed files with 7 additions and 5 deletions
|
@ -155,7 +155,7 @@ impl WorkerGlobalScope {
|
|||
|
||||
pub fn get_runnable_wrapper(&self) -> RunnableWrapper {
|
||||
RunnableWrapper {
|
||||
cancelled: self.closing.clone().unwrap(),
|
||||
cancelled: self.closing.clone(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue