Merge branch 'bugfix/monitor_windows10_crash' into 'master'
monitor: Fix Windows 10 crash since Fall Creators Update See merge request !1567
This commit is contained in:
commit
7683bdbce2
1 changed files with 6 additions and 1 deletions
|
@ -559,6 +559,11 @@ if os.name == 'nt':
|
||||||
self.output.write(self.matched) # not an ANSI color code, display verbatim
|
self.output.write(self.matched) # not an ANSI color code, display verbatim
|
||||||
self.matched = b''
|
self.matched = b''
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
|
self.output.write(b)
|
||||||
|
except IOError:
|
||||||
|
# Windows 10 bug since the Fall Creators Update, sometimes writing to console randomly fails
|
||||||
|
# (but always succeeds the second time, it seems.) Ref https://github.com/espressif/esp-idf/issues/1136
|
||||||
self.output.write(b)
|
self.output.write(b)
|
||||||
self.matched = b''
|
self.matched = b''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue