Explorar el Código

skip remains/buffer lines if broken

Christian Kahlau hace 11 meses
padre
commit
2450eb26ad
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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));