Fix endpoints not close

This commit is contained in:
HystericalDragon 2025-01-17 11:21:07 +08:00 committed by GitHub
parent bd2e052815
commit 4f453e81ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
box.go
View file

@ -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 {