mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-06-13 05:44:12 +08:00
Fix crash on remote rule-set stop
This commit is contained in:
parent
7f79458b4f
commit
0908627297
@ -301,8 +301,10 @@ func (s *RemoteRuleSet) fetchOnce(ctx context.Context, startContext *adapter.HTT
|
|||||||
|
|
||||||
func (s *RemoteRuleSet) Close() error {
|
func (s *RemoteRuleSet) Close() error {
|
||||||
s.rules = nil
|
s.rules = nil
|
||||||
s.updateTicker.Stop()
|
|
||||||
s.cancel()
|
s.cancel()
|
||||||
|
if s.updateTicker != nil {
|
||||||
|
s.updateTicker.Stop()
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user