mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-08 07:21:13 +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()?
|
.transpose()?
|
||||||
.unwrap_or(false);
|
.unwrap_or(false);
|
||||||
if !settings_applied {
|
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 proxy.running() {
|
||||||
if let Some(url) = proxy.url() {
|
if let Some(url) = proxy.url() {
|
||||||
|
|||||||
Reference in New Issue
Block a user