#34 fix: tmp file overflow

Đã hợp nhất
tunefish đã nhập 1 commit từ hostbbq/bugfix/tmp-file-overflow vào [3]s 11 tháng trước cách đây
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      daemon/src/collector.class.ts

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

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