From 39a3ac13d2cb4ba9542a1cc496c710d632abefc2 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 24 Dec 2014 13:41:49 +0800 Subject: [PATCH] Fix CPU Hang --- output/outputs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outputs.go b/output/outputs.go index 56d71e9..79f1a11 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -229,7 +229,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { channelRet["cmd"] = "run" channelRet["output"] = "" + buf + "" - err := wsChannel.WriteJSON(&channelRet) + err = wsChannel.WriteJSON(&channelRet) if nil != err { logger.Error(err) break