Commit 930a627b authored by Guillaume Seguin's avatar Guillaume Seguin

Mark printer as online before calling onlinecb

Hopefully this was not a hack before :)
parent c419d761
......@@ -277,10 +277,10 @@ class printcore():
else: empty_lines = 0
if line.startswith(tuple(self.greetings)) \
or line.startswith('ok') or "T:" in line:
self.online = True
if self.onlinecb:
try: self.onlinecb()
except: traceback.print_exc()
self.online = True
return
def _listen(self):
......
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