mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-13 04:19:57 +00:00
fix: provider auto update
This commit is contained in:
@@ -118,7 +118,8 @@ func NewRuleSetProvider(name string, behavior P.RuleType, interval time.Duration
|
||||
rp,
|
||||
}
|
||||
|
||||
runtime.SetFinalizer(wrapper, rp.fetcher.Destroy())
|
||||
final := func(provider *RuleSetProvider) { rp.fetcher.Destroy() }
|
||||
runtime.SetFinalizer(wrapper, final)
|
||||
return wrapper
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user