fix could not send non-service .js or .txt files

This commit is contained in:
zefie
2024-05-06 10:09:25 -04:00
parent 7257d5f39e
commit 782fd4f4ba

View File

@@ -945,11 +945,11 @@ class WTVShared {
}); });
lineReader.on('line', (line) => { lineReader.on('line', (line) => {
lineCount++;
if (lineCount === lineNo) { if (lineCount === lineNo) {
lineReader.close(); lineReader.close();
callback(null, line); callback(null, line);
} }
lineCount++;
}); });
lineReader.on('close', () => { lineReader.on('close', () => {