mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-08 11:02:08 +08:00
fix(service): stop waiting on a service that no longer starts with Windows
When the service's start type was changed from automatic, startup waited about two minutes for it before falling back to Sidecar. Detect this immediately, skip the TUN readiness wait, and offer a reinstall that restores automatic start. Refs #8129
This commit is contained in:
@@ -189,6 +189,7 @@ export async function takeDnsOverrideNotice() {
|
||||
export type ServiceFallbackNotice =
|
||||
| { kind: 'unavailable' }
|
||||
| { kind: 'coreRejected'; reason: string }
|
||||
| { kind: 'notAutoStarted' }
|
||||
|
||||
export async function takeServiceFallbackNotice() {
|
||||
return invoke<ServiceFallbackNotice | null>('take_service_fallback_notice')
|
||||
|
||||
@@ -4,6 +4,7 @@ export type ServiceRequestReason =
|
||||
| 'sysproxySidecarReady'
|
||||
| 'tunNeedsService'
|
||||
| 'serviceLocationRefused'
|
||||
| 'serviceNotAutoStarted'
|
||||
|
||||
export interface ServiceRequest {
|
||||
readonly reason: ServiceRequestReason
|
||||
|
||||
Reference in New Issue
Block a user