fix: add debug logging for shared state synchronization in ClientState

This commit is contained in:
MayaTheShy
2025-11-08 21:06:34 -05:00
parent 609ccf9479
commit e29620d105

View File

@@ -55,9 +55,16 @@ impl ClientState for BridgeState {
if let Ok(ctrl) = CTRL.lock() { if let Ok(ctrl) = CTRL.lock() {
if let Some(shared) = &ctrl.shared_state { if let Some(shared) = &ctrl.shared_state {
if let Ok(shared_state) = shared.lock() { if let Ok(shared_state) = shared.lock() {
eprintln!("[bridge/on_frame] Syncing {} nodes from shared_state", shared_state.nodes.len());
self.nodes = shared_state.nodes.clone(); self.nodes = shared_state.nodes.clone();
} else {
eprintln!("[bridge/on_frame] Failed to lock shared_state");
} }
} else {
eprintln!("[bridge/on_frame] No shared_state in ctrl");
} }
} else {
eprintln!("[bridge/on_frame] Failed to lock CTRL");
} }
} }
} }