🐛 virtual printer: Fix handling of closed connection

Closes #3114
This commit is contained in:
Gina Häußge committed 2019-04-08 12:24:24 +02:00
1 parent c28faa8032
commit 132e2cb244
1 file changed
+4
@@ -283,6 +283,10 @@ class VirtualPrinter(object):
self._send("wait")
next_wait_timeout = monotonic_time() + self._waitInterval
continue
except Exception:
if self.incoming is None:
# just got closed
break
buf += data
if "\n" in buf: