We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 806313d + d97289c commit 92698cfCopy full SHA for 92698cf
howdy/src/compare.py
@@ -89,8 +89,9 @@ def send_to_ui(type, message):
89
90
# Try to send the message to the auth ui, but it's okay if that fails
91
try:
92
- gtk_proc.stdin.write(bytearray(message.encode("utf-8")))
93
- gtk_proc.stdin.flush()
+ if gtk_proc.poll() is None: # Make sure the gtk_proc is still running before write into the pipe
+ gtk_proc.stdin.write(bytearray(message.encode("utf-8")))
94
+ gtk_proc.stdin.flush()
95
except IOError:
96
pass
97
0 commit comments