mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-05 12:57:36 +03:00
Fix router close
This commit is contained in:
parent
c84c18f960
commit
4ea2d460f4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue