Saner exit for thread-unsafe code

It can't be right that we return from threads_enter() before releasing
the global lock. Exit works properly for failure (try-finally).
This commit is contained in:
Mika Bostrom 2009-11-25 11:10:34 +02:00
parent df8e0a5899
commit 9c591da893

View File

@ -122,6 +122,7 @@ class HUD_main(object):
m.update_gui(new_hand_id)
self.hud_dict[table_name].update(new_hand_id, self.config)
self.hud_dict[table_name].reposition_windows()
gtk.gdk.threads_leave()
return False
finally:
gtk.gdk.threads_leave()