mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-02 17:58:46 +00:00
Handle browser dialer cleanup errors on instance lifecycle
Agent-Logs-Url: https://github.com/XTLS/Xray-core/sessions/b8c640ab-f93c-4609-8e34-a8e14e2be9e7 Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8043924af5
commit
41bc47b1ec
+3
-1
@@ -396,7 +396,9 @@ func (s *Instance) Start() error {
|
||||
for _, f := range s.features {
|
||||
if err := f.Start(); err != nil {
|
||||
s.running = false
|
||||
_ = browser_dialer.StopCollectedDialerProxyURLs()
|
||||
if stopErr := browser_dialer.StopCollectedDialerProxyURLs(); stopErr != nil {
|
||||
return errors.New("failed to clean up browser dialer after startup failure").Base(errors.New(serial.Concat(err, "; ", stopErr)))
|
||||
}
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user