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:
Matt Turnbull 2009-01-06 23:13:12 +00:00
parent 214861fc51
commit d14dddca90

View File

@ -101,6 +101,7 @@ def read_stdin(): # This is the thread function
new_hand_id = string.rstrip(new_hand_id)
if new_hand_id == "": # blank line means quit
destroy()
break # this thread is not always killed immediately with gtk.main_quit()
# delete hud_dict entries for any HUD destroyed since last iteration
for h in hud_dict.keys():