fix could not send non-service .js or .txt files
This commit is contained in:
@@ -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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user