Fix my previous dumb
This commit is contained in:
@@ -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',
|
||||
};
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user