Skip to content

Commit

Permalink
Fix rule-set not closed
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Feb 1, 2025
1 parent 27c31ea commit 3014385
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions route/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,13 @@ func (r *Router) Close() error {
})
monitor.Finish()
}
for i, ruleSet := range r.ruleSets {
monitor.Start("close rule-set[", i, "]")
err = E.Append(err, ruleSet.Close(), func(err error) error {
return E.Cause(err, "close rule-set[", i, "]")
})
monitor.Finish()
}
return err
}

Expand Down

0 comments on commit 3014385

Please sign in to comment.