Fix service will not be closed

This commit is contained in:
世界 2025-06-10 20:57:43 +08:00
parent d2e79e501e
commit 53282c333d
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

2
box.go
View File

@ -498,7 +498,7 @@ func (s *Box) Close() error {
close(s.done)
}
err := common.Close(
s.inbound, s.outbound, s.endpoint, s.router, s.connection, s.dnsRouter, s.dnsTransport, s.network,
s.service, s.endpoint, s.inbound, s.outbound, s.router, s.connection, s.dnsRouter, s.dnsTransport, s.network,
)
for _, lifecycleService := range s.internalService {
err = E.Append(err, lifecycleService.Close(), func(err error) error {