From 763e140775d85fd8fbf748445091a6ec261e165b Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 19 May 2019 11:01:36 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E8=BF=9B=E7=A8=8B=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E7=BB=93=E6=9D=9F=E4=BF=A1=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- session/processes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session/processes.go b/session/processes.go index d4a06ee..5c4e6ea 100644 --- a/session/processes.go +++ b/session/processes.go @@ -166,7 +166,6 @@ func RunHandler(w http.ResponseWriter, r *http.Request, channel map[string]*util }() after := time.After(5 * time.Second) - channelRet["cmd"] = "run-done" kill := false select { case <-after: @@ -189,6 +188,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request, channel map[string]*util logger.Debugf("User [%s, %s] done running [id=%s, file=%s, kill=%v]", wSession.UserId, sid, rid, filePath, kill) if nil != wsChannel { + channelRet["cmd"] = "run-done" wsChannel.WriteJSON(&channelRet) wsChannel.Refresh() }