Fix crash on remote rule-set stop
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user