Fix my previous dumb
This commit is contained in:
parent
433ad72752
commit
487968dac9
|
@ -138,7 +138,7 @@ exports.getModule = class mrcModule extends MenuModule {
|
||||||
},
|
},
|
||||||
(callback) => {
|
(callback) => {
|
||||||
const connectOpts = {
|
const connectOpts = {
|
||||||
port : _.get(Config(), 'chatServers.mrc.serverPort', 5000),
|
port : _.get(Config(), 'chatServers.mrc.multiplexerPort', 5000),
|
||||||
host : 'localhost',
|
host : 'localhost',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ exports.getModule = class MrcModule extends ServerModule {
|
||||||
buffer = Buffer.concat([buffer, chunk]);
|
buffer = Buffer.concat([buffer, chunk]);
|
||||||
}
|
}
|
||||||
|
|
||||||
var lines = buffer.toString().split(lineDelimiter);
|
let lines = buffer.toString().split(lineDelimiter);
|
||||||
|
|
||||||
if (lines.pop()) {
|
if (lines.pop()) {
|
||||||
// if buffer is not ended with \r\n, there's more chunks.
|
// if buffer is not ended with \r\n, there's more chunks.
|
||||||
|
|
Loading…
Reference in New Issue