mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-10-12 01:58:46 +02:00
fix(cli): port runtime lifecycle cleanup
This commit is contained in:
1 parent
b8c6ca8f7a
commit
4fb8e506e2
20 files changed
+1695
-69
No files matched your search
@@ -79,7 +79,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)
|
||||
|
||||
Reference in new issue
Block a user