From fe485b5d258cb2ec341f2c9b3fabc5fc9d8e3716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 25 Nov 2026 20:09:37 +0800 Subject: [PATCH] Fix tor process killed before halt on close --- protocol/tor/outbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/tor/outbound.go b/protocol/tor/outbound.go index 1165bd4a..798fd19d 100644 --- a/protocol/tor/outbound.go +++ b/protocol/tor/outbound.go @@ -139,7 +139,7 @@ var torLogEvents = []control.EventCode{ } func (t *Outbound) start(scope *adapter.Scope) error { - torInstance, err := tor.Start(t.ctx, t.startConf) + torInstance, err := tor.Start(context.WithoutCancel(t.ctx), t.startConf) if err != nil { return E.New(strings.ToLower(err.Error())) }