From 4f453e81ac4d0a1ad9348dae5cf8e9feb40f5c05 Mon Sep 17 00:00:00 2001 From: HystericalDragon Date: Fri, 17 Jan 2025 11:21:07 +0800 Subject: [PATCH] Fix endpoints not close --- box.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box.go b/box.go index 1908f6db..0cbf1b3b 100644 --- a/box.go +++ b/box.go @@ -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 {