fix(cli): release runtime resources across startup and shutdown

Co-authored-by: Ginder Singh <ginder@windscribe.com>
This commit is contained in:
Dev ScribeandGinder Singh authored and Cuong Manh Le committed 2026-09-28 16:49:42 +07:00
1 parent f823977992
commit 3127212eca
19 files changed
+1701 -74

No files matched your search

-1
View File
@@ -76,7 +76,6 @@ func (s *controlServer) start() error {
}
func (s *controlServer) stop() error {
_ = os.Remove(s.addr)
ctx, cancel := context.WithTimeout(context.Background(), time.Second*2)
defer cancel()
return s.server.Shutdown(ctx)