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:
parent
df8e0a5899
commit
9c591da893
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user