mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-03 18:23:51 +08:00
fix(local-app): don't fail takeover when Cursor termination fails
This commit is contained in:
@@ -188,7 +188,11 @@ impl CursorHarness {
|
||||
.transpose()?
|
||||
.unwrap_or(false);
|
||||
if !settings_applied {
|
||||
process::terminate_cursor().await?;
|
||||
// Terminating Cursor only makes the freshly written http.proxy take effect
|
||||
// sooner; it is optional, so a failed probe or kill must not block takeover.
|
||||
if let Err(error) = process::terminate_cursor().await {
|
||||
tracing::warn!(%error, "could not terminate Cursor before applying proxy settings");
|
||||
}
|
||||
}
|
||||
if proxy.running() {
|
||||
if let Some(url) = proxy.url() {
|
||||
|
||||
Reference in New Issue
Block a user