Fix router close

This commit is contained in:
世界 2023-09-07 12:54:45 +08:00
parent c84c18f960
commit 4ea2d460f4
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -521,7 +521,7 @@ func (r *Router) Close() error {
return E.Cause(err, "close dns transport[", i, "]")
})
}
if r.geositeReader != nil {
if r.geoIPReader != nil {
r.logger.Trace("closing geoip reader")
err = E.Append(err, common.Close(r.geoIPReader), func(err error) error {
return E.Cause(err, "close geoip reader")