From 9c591da893cce73e66c82d617471949f4aa71be7 Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Wed, 25 Nov 2009 11:10:34 +0200 Subject: [PATCH] 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). --- pyfpdb/HUD_main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index 5b2cc085..30844887 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -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()