mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-17 00:23:48 +08:00
Fix router close
This commit is contained in:
parent
c84c18f960
commit
4ea2d460f4
|
@ -521,7 +521,7 @@ func (r *Router) Close() error {
|
||||||
return E.Cause(err, "close dns transport[", i, "]")
|
return E.Cause(err, "close dns transport[", i, "]")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if r.geositeReader != nil {
|
if r.geoIPReader != nil {
|
||||||
r.logger.Trace("closing geoip reader")
|
r.logger.Trace("closing geoip reader")
|
||||||
err = E.Append(err, common.Close(r.geoIPReader), func(err error) error {
|
err = E.Append(err, common.Close(r.geoIPReader), func(err error) error {
|
||||||
return E.Cause(err, "close geoip reader")
|
return E.Cause(err, "close geoip reader")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user