diff options
author | Aapo Alasuutari <aapo.alasuutari@gmail.com> | 2022-06-28 12:23:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 14:53:36 +0530 |
commit | 00f4521b205bf25c79f0fa7c9a6840941342bda4 (patch) | |
tree | b988db360143384ae216022846b518ceb262c80a /core/runtime.rs | |
parent | e1c90963fbbf6571ae1b66971b83159681928ec3 (diff) |
feat(ext/ffi): Thread safe callbacks (#14942)
Diffstat (limited to 'core/runtime.rs')
-rw-r--r-- | core/runtime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime.rs b/core/runtime.rs index 7cb556fd3..23fe73013 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -921,7 +921,7 @@ impl JsRuntime { let state = state_rc.borrow(); let op_state = state.op_state.clone(); for f in &self.event_loop_middlewares { - if f(&mut op_state.borrow_mut(), cx) { + if f(op_state.clone(), cx) { maybe_scheduling = true; } } |