mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-01-30 20:56:54 +00:00
Fix endpoints not close
This commit is contained in:
parent
bd2e052815
commit
4f453e81ac
2
box.go
2
box.go
|
@ -399,7 +399,7 @@ func (s *Box) Close() error {
|
||||||
close(s.done)
|
close(s.done)
|
||||||
}
|
}
|
||||||
err := common.Close(
|
err := common.Close(
|
||||||
s.inbound, s.outbound, s.router, s.connection, s.network,
|
s.inbound, s.outbound, s.endpoint, s.router, s.connection, s.network,
|
||||||
)
|
)
|
||||||
for _, lifecycleService := range s.services {
|
for _, lifecycleService := range s.services {
|
||||||
err = E.Append(err, lifecycleService.Close(), func(err error) error {
|
err = E.Append(err, lifecycleService.Close(), func(err error) error {
|
||||||
|
|
Loading…
Reference in a new issue