Browse Source

Don't leave externalui hanging in case of bad writes

Do not happen in our code, I think, but a good practice anyway
tags/v1.9.11
falkTX 6 years ago
parent
commit
c7ede953ab
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      source/externalui.py

+ 2
- 1
source/externalui.py View File

@@ -200,7 +200,8 @@ class ExternalUI(object):
line2 = "%.10f" % line line2 = "%.10f" % line
else: else:
print("unknown data type to send:", type(line)) print("unknown data type to send:", type(line))
return False
hasError = True
break


if not gCarla.utils.pipe_client_write_msg(self.fPipeClient, line2 + "\n"): if not gCarla.utils.pipe_client_write_msg(self.fPipeClient, line2 + "\n"):
hasError = True hasError = True


Loading…
Cancel
Save