Fix crash on EOF

This commit is contained in:
Ole André Vadla Ravnås
2016-04-15 15:32:18 +02:00
parent b7d6804e56
commit 375e2fee79
+2
View File
@@ -242,6 +242,8 @@ class ConsoleApplication(object):
self._print("Waiting for USB device to appear...")
def _on_output(self, pid, fd, data):
if data is None:
return
if fd == 1:
prefix = "stdout> "
stream = sys.stdout