radicle-tauri/startup: Remove unnecessary clone

This commit is contained in:
Lorenz Leutgeb
2026-04-26 10:41:51 +02:00
parent ce99494c31
commit 3864336d45
+1 -2
View File
@@ -46,14 +46,13 @@ pub(crate) fn startup(app: AppHandle) -> Result<Config, Error> {
let node_handle = app.app_handle().clone();
let node = Node::new(profile.socket());
let node_status = node.clone();
app.manage(inbox_service);
app.manage(patch_service);
tauri::async_runtime::spawn(async move {
loop {
let _ = node_handle.emit("node_running", node_status.is_running());
let _ = node_handle.emit("node_running", node.is_running());
tokio::time::sleep(std::time::Duration::from_secs(2)).await;
}
});