From 7d64d780b8c9b84cfa48a4f947bb61027f3c807e Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 21 Apr 2026 11:22:33 -0400 Subject: [PATCH] guard controller set to fix hot restarts --- rust/src/api/workspace_api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/api/workspace_api.rs b/rust/src/api/workspace_api.rs index 46bc884..d6b9ce3 100644 --- a/rust/src/api/workspace_api.rs +++ b/rust/src/api/workspace_api.rs @@ -29,7 +29,7 @@ impl Workspace { pub fn listen_workspaces(sink: StreamSink>>) -> Result<()> { let (tx, rx): (Sender, Channel) = channel(); - CONTROLLER.set(tx).unwrap(); + let _ = CONTROLLER.set(tx); let connection = Connection::connect_to_env().unwrap(); let event_queue = connection.new_event_queue();