From 09e31eaf124378bbc3c2f9ade32cc4d43fc4b10a Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sat, 8 Nov 2025 21:51:22 -0500 Subject: [PATCH] fix: clone shared state for event loop in sdxr_start function --- bridge/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bridge/src/lib.rs b/bridge/src/lib.rs index 7b69a3f..5ad1375 100644 --- a/bridge/src/lib.rs +++ b/bridge/src/lib.rs @@ -193,6 +193,7 @@ pub extern "C" fn sdxr_start(app_id: *const std::os::raw::c_char) -> i32 { // Shared state that both the command handler and the client state will access let shared_state = Arc::new(Mutex::new(BridgeState::default())); let shared_for_commands = Arc::clone(&shared_state); + let shared_for_event_loop = Arc::clone(&shared_state); // Build a multi-threaded Tokio runtime for the client let rt = tokio::runtime::Builder::new_multi_thread()