diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-06-27 20:52:14 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-06-27 20:52:14 (GMT) |
commit | 224ffedb07e165c99e52045fb28614319a9e93e2 (patch) | |
tree | c9de9ede8775a9d93fd981463f2f2ef1cc4dba3f | |
parent | 1f17fc4f98d8a124c2762af27a2633ee5eff6071 (diff) |
add debug message when done has been sent
-rw-r--r-- | src/rhimportd/ctrlWebSocket.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rhimportd/ctrlWebSocket.go b/src/rhimportd/ctrlWebSocket.go index 892cf3a..a22c134 100644 --- a/src/rhimportd/ctrlWebSocket.go +++ b/src/rhimportd/ctrlWebSocket.go @@ -314,6 +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) + rhdl.Println("WebSocket Client", ws.RemoteAddr(), "done sent: sending close message.") ws.WriteControl(websocket.CloseMessage, []byte{}, time.Now().Add(time.Minute)) } } |