Don't cork

This commit is contained in:
Bryan Ashby 2020-05-27 19:24:45 -06:00
parent 0bf3031d9f
commit a1c9d8538f
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 0 additions and 2 deletions

View File

@ -464,7 +464,6 @@ exports.getModule = class TransferFileModule extends MenuModule {
} }
// at least one double (escaped) IAC // at least one double (escaped) IAC
externalProc._socket.cork();
let lastPos = 0; let lastPos = 0;
while (iacPos > -1) { while (iacPos > -1) {
let rem = iacPos - lastPos; let rem = iacPos - lastPos;
@ -478,7 +477,6 @@ exports.getModule = class TransferFileModule extends MenuModule {
if (lastPos < data.length) { if (lastPos < data.length) {
externalProc.write(data.slice(lastPos)); externalProc.write(data.slice(lastPos));
} }
externalProc._socket.uncork();
// const tmp = data.toString('binary').replace(/\xff{2}/g, '\xff'); // de-escape // const tmp = data.toString('binary').replace(/\xff{2}/g, '\xff'); // de-escape
// externalProc.write(Buffer.from(tmp, 'binary')); // externalProc.write(Buffer.from(tmp, 'binary'));
} else { } else {