Commit 20c7ef70 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix possible race condition in printcore.startprint

parent bb1eb7af
...@@ -357,10 +357,10 @@ class printcore(): ...@@ -357,10 +357,10 @@ class printcore():
""" """
if self.printing or not self.online or not self.printer: if self.printing or not self.online or not self.printer:
return False return False
self.printing = True self.queueindex = startindex
self.mainqueue = gcode self.mainqueue = gcode
self.printing = True
self.lineno = 0 self.lineno = 0
self.queueindex = startindex
self.resendfrom = -1 self.resendfrom = -1
self._send("M110", -1, True) self._send("M110", -1, True)
if not gcode or not gcode.lines: if not gcode or not gcode.lines:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment