diff options
Diffstat (limited to 'pkg/control')
-rw-r--r-- | pkg/control/server/server.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/control/server/server.go b/pkg/control/server/server.go index eca06791c..889568177 100644 --- a/pkg/control/server/server.go +++ b/pkg/control/server/server.go @@ -21,8 +21,8 @@ implementations of the control interface. package server import ( - "context" "os" + "time" "gvisor.dev/gvisor/pkg/log" "gvisor.dev/gvisor/pkg/sync" @@ -66,13 +66,13 @@ func (s *Server) Wait() { // Stop stops the server. Note that this function should only be called once // and the server should not be used afterwards. -func (s *Server) Stop(ctx context.Context) { +func (s *Server) Stop(timeout time.Duration) { s.socket.Close() s.Wait() // This will cause existing clients to be terminated safely. If the // registered handlers have a Stop callback, it will be called. - s.server.Stop(ctx) + s.server.Stop(timeout) } // StartServing starts listening for connect and spawns the main service |