summaryrefslogtreecommitdiffhomepage
path: root/pkg/control
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-01-05 21:33:03 +0000
committergVisor bot <gvisor-bot@google.com>2021-01-05 21:33:03 +0000
commitba74ccdec1f21b071355a4768d5fc0d5b036d33e (patch)
tree64ce8912999828dfd55101a17bc2f012a79f0599 /pkg/control
parentcd29587db7a9b3cf298450778a9c335426b5fa00 (diff)
parentb06e5bc5b0913d3740b435d8753a2569220e0a33 (diff)
Merge release-20201208.0-109-gb06e5bc5b (automated)
Diffstat (limited to 'pkg/control')
-rw-r--r--pkg/control/server/server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/control/server/server.go b/pkg/control/server/server.go
index 41abe1f2d..629dae8f4 100644
--- a/pkg/control/server/server.go
+++ b/pkg/control/server/server.go
@@ -67,9 +67,10 @@ func (s *Server) Wait() {
// and the server should not be used afterwards.
func (s *Server) Stop() {
s.socket.Close()
- s.wg.Wait()
+ s.Wait()
- // This will cause existing clients to be terminated safely.
+ // This will cause existing clients to be terminated safely. If the
+ // registered handlers have a Stop callback, it will be called.
s.server.Stop()
}