Fix endpoints not close

This commit is contained in:
HystericalDragon 2025-01-17 11:21:07 +08:00 committed by 世界
parent e65926fd08
commit 6b4cf67add
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

2
box.go
View file

@ -399,7 +399,7 @@ func (s *Box) Close() error {
close(s.done)
}
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 {
err = E.Append(err, lifecycleService.Close(), func(err error) error {