diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-01-05 21:33:03 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-01-05 21:33:03 +0000 |
commit | ba74ccdec1f21b071355a4768d5fc0d5b036d33e (patch) | |
tree | 64ce8912999828dfd55101a17bc2f012a79f0599 /pkg/control | |
parent | cd29587db7a9b3cf298450778a9c335426b5fa00 (diff) | |
parent | b06e5bc5b0913d3740b435d8753a2569220e0a33 (diff) |
Merge release-20201208.0-109-gb06e5bc5b (automated)
Diffstat (limited to 'pkg/control')
-rw-r--r-- | pkg/control/server/server.go | 5 |
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() } |