Commit 4dc17d8e authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #18522 from liggitt/close_websocket

Auto commit by PR queue bot
parents 431ab7f7 993ef54e
...@@ -88,6 +88,7 @@ type WatchServer struct { ...@@ -88,6 +88,7 @@ type WatchServer struct {
// HandleWS implements a websocket handler. // HandleWS implements a websocket handler.
func (w *WatchServer) HandleWS(ws *websocket.Conn) { func (w *WatchServer) HandleWS(ws *websocket.Conn) {
defer ws.Close()
done := make(chan struct{}) done := make(chan struct{})
go func() { go func() {
var unused interface{} var unused interface{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment