fix: nettoyer warning state_clone + xcopy /Y + taskkill avant copie runtime
CI / lint (push) Successful in 24s
CI / security (push) Successful in 13s
CI / test (push) Successful in 27s
CI / build (push) Successful in 6s
CI / e2e (push) Failing after 27s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
CI / lint (push) Successful in 24s
CI / security (push) Successful in 13s
CI / test (push) Successful in 27s
CI / build (push) Successful in 6s
CI / e2e (push) Failing after 27s
Desktop Build / build-windows (push) Has been cancelled
Desktop Build / build-linux (push) Has been cancelled
- main.rs: supprimer state_clone unused dans restart_backend - build-windows.bat: taskkill /F python.exe avant xcopy (évite Access denied) - build-windows.bat: /Y sur xcopy (pas de prompt interactif) - build-windows.bat: 2>nul sur rmdir (silencieux si dossier absent)
This commit is contained in:
+1
-3
@@ -256,9 +256,7 @@ fn restart_backend(state: tauri::State<BackendProcess>) -> Result<String, String
|
||||
*guard = Some(new_child);
|
||||
drop(guard);
|
||||
|
||||
// Wait for it to become ready (fire and forget with UI poll)
|
||||
let state_clone = state.inner().clone();
|
||||
// Can't clone state directly, use a flag pattern
|
||||
// Fire and forget — the monitoring loop will detect when it's ready
|
||||
info!("Backend restart initiated");
|
||||
Ok("restarting".to_string())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user