mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-05 12:17:17 +02:00
Fix my previous dumb
This commit is contained in:
parent
433ad72752
commit
487968dac9
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue