mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-12-01 14:18:36 +00:00
Fix tor process killed before halt on close
This commit is contained in:
@@ -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()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user