Fixed line count incrementation for gcode streaming

master
Gina Häußge 2013-06-09 15:55:55 +02:00
parent 8d4f7e2ba7
commit 30a57e21f4
1 changed files with 1 additions and 1 deletions

View File

@ -1189,11 +1189,11 @@ class PrintingGcodeFileInformation(PrintingFileInformation):
# file got closed just now
return None
line = self._filehandle.readline()
self._lineCount += 1
if not line:
self._filehandle.close()
self._filehandle = None
processedLine = self._processLine(line)
self._lineCount += 1
self._filepos = self._filehandle.tell()
if self._lineCount >= 100 and self._startTime is None: