summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-27 20:49:18 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-27 20:49:18 (GMT)
commit1f17fc4f98d8a124c2762af27a2633ee5eff6071 (patch)
tree31f00d11db3be9d65f1b27dda9102819f9450a8e
parent902279bc40475d9ca4dd2c8e9928861027fd306d (diff)
send close message after done
-rw-r--r--src/rhimportd/ctrlWebSocket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhimportd/ctrlWebSocket.go b/src/rhimportd/ctrlWebSocket.go
index 410c209..892cf3a 100644
--- a/src/rhimportd/ctrlWebSocket.go
+++ b/src/rhimportd/ctrlWebSocket.go
@@ -314,7 +314,7 @@ func webSocketSessionHandler(reqchan <-chan webSocketRequestData, binchan <-chan
sendWebSocketProgressResponse(ws, session.id, session.refId, p.Step, p.StepName, p.Current, p.Total)
case d := <-session.donechan:
sendWebSocketDoneResponse(ws, d.ResponseCode, d.ErrorString, session.id, session.refId, d.Cart, d.Cut)
- // TODO: send close message at this point?
+ ws.WriteControl(websocket.CloseMessage, []byte{}, time.Now().Add(time.Minute))
}
}
}