From d65ba4cb46ce3210e53282cb8fd4147b46864103 Mon Sep 17 00:00:00 2001 From: suwings Date: Sat, 24 Feb 2018 15:25:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=88=B7=E6=96=B0=E9=A2=91?= =?UTF-8?q?=E7=8E=87=E8=B0=83=E5=88=B61s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/websocket/console.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/route/websocket/console.js b/route/websocket/console.js index c3021374..06caa405 100644 --- a/route/websocket/console.js +++ b/route/websocket/console.js @@ -112,9 +112,10 @@ setInterval(() => { body: data }); }); + delete consoleBuffer[serverName] consoleBuffer[serverName] = ""; } -}, 1000); +}, 1100); //控制台标准输出流 serverModel.ServerManager().on('console', (data) => { let server = serverModel.ServerManager().getServer(data.serverName);