Break from thread loop instead of continuing. Fixes a bug where
we'd be looking up a new_hand_id of ""
This commit is contained in:
parent
214861fc51
commit
d14dddca90
|
@ -101,6 +101,7 @@ def read_stdin(): # This is the thread function
|
||||||
new_hand_id = string.rstrip(new_hand_id)
|
new_hand_id = string.rstrip(new_hand_id)
|
||||||
if new_hand_id == "": # blank line means quit
|
if new_hand_id == "": # blank line means quit
|
||||||
destroy()
|
destroy()
|
||||||
|
break # this thread is not always killed immediately with gtk.main_quit()
|
||||||
|
|
||||||
# delete hud_dict entries for any HUD destroyed since last iteration
|
# delete hud_dict entries for any HUD destroyed since last iteration
|
||||||
for h in hud_dict.keys():
|
for h in hud_dict.keys():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user