diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-06-27 20:49:18 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-06-27 20:49:18 (GMT) |
commit | 1f17fc4f98d8a124c2762af27a2633ee5eff6071 (patch) | |
tree | 31f00d11db3be9d65f1b27dda9102819f9450a8e /src/rhimportd | |
parent | 902279bc40475d9ca4dd2c8e9928861027fd306d (diff) |
send close message after done
Diffstat (limited to 'src/rhimportd')
-rw-r--r-- | src/rhimportd/ctrlWebSocket.go | 2 |
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)) } } } |