#34 fix: tmp file overflow

已合并
tunefish 11 月之前 将 1 次代码提交从 hostbbq/bugfix/tmp-file-overflow合并至 hostbbq/master
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      daemon/src/collector.class.ts

+ 1 - 1
daemon/src/collector.class.ts

@@ -189,7 +189,7 @@ export class Collector {
       do {
       do {
         const line = lines.shift();
         const line = lines.shift();
 
 
-        if (!line) break;
+        if (!line || line.length < 3) break;
 
 
         const data = this.parseBufferedData(line);
         const data = this.parseBufferedData(line);
         Logger.debug('[DEBUG] BufferedData:', JSON.stringify(data));
         Logger.debug('[DEBUG] BufferedData:', JSON.stringify(data));