diff options
Diffstat (limited to 'src')
-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)) } } } |