Skip to content

Commit 92698cf

Browse files
authored
Merge pull request #998 from YKScoding/beta
Update compare.py from #968
2 parents 806313d + d97289c commit 92698cf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

howdy/src/compare.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ def send_to_ui(type, message):
8989

9090
# Try to send the message to the auth ui, but it's okay if that fails
9191
try:
92-
gtk_proc.stdin.write(bytearray(message.encode("utf-8")))
93-
gtk_proc.stdin.flush()
92+
if gtk_proc.poll() is None: # Make sure the gtk_proc is still running before write into the pipe
93+
gtk_proc.stdin.write(bytearray(message.encode("utf-8")))
94+
gtk_proc.stdin.flush()
9495
except IOError:
9596
pass
9697

0 commit comments

Comments
 (0)