From 52d8578841032cf0ff0e215a36889d6b826bcb5f Mon Sep 17 00:00:00 2001 From: Mika Bostrom Date: Tue, 24 Nov 2009 10:57:03 +0200 Subject: [PATCH] Try to fix HUD hangs --- pyfpdb/HUD_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyfpdb/HUD_main.py b/pyfpdb/HUD_main.py index e936602a..04f46287 100755 --- a/pyfpdb/HUD_main.py +++ b/pyfpdb/HUD_main.py @@ -219,6 +219,8 @@ class HUD_main(object): except KeyError: # HUD instance has been killed off, key is stale sys.stderr.write('hud_dict[%s] was not found\n' % temp_key) sys.stderr.write('will not send hand\n') + # Unlocks table, copied from end of function + self.db_connection.connection.rollback() return cards = self.db_connection.get_cards(new_hand_id) comm_cards = self.db_connection.get_common_cards(new_hand_id)