From 487968dac94e7453d317e4647f772e30c6208047 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 9 Jun 2019 09:19:34 -0600 Subject: [PATCH] Fix my previous dumb --- core/mrc.js | 2 +- core/servers/chat/mrc_multiplexer.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/mrc.js b/core/mrc.js index c80adf80..6987be32 100644 --- a/core/mrc.js +++ b/core/mrc.js @@ -138,7 +138,7 @@ exports.getModule = class mrcModule extends MenuModule { }, (callback) => { const connectOpts = { - port : _.get(Config(), 'chatServers.mrc.serverPort', 5000), + port : _.get(Config(), 'chatServers.mrc.multiplexerPort', 5000), host : 'localhost', }; diff --git a/core/servers/chat/mrc_multiplexer.js b/core/servers/chat/mrc_multiplexer.js index 9b976eff..fd83d462 100644 --- a/core/servers/chat/mrc_multiplexer.js +++ b/core/servers/chat/mrc_multiplexer.js @@ -104,7 +104,7 @@ exports.getModule = class MrcModule extends ServerModule { buffer = Buffer.concat([buffer, chunk]); } - var lines = buffer.toString().split(lineDelimiter); + let lines = buffer.toString().split(lineDelimiter); if (lines.pop()) { // if buffer is not ended with \r\n, there's more chunks.