Commit 6d1e876b authored by Cédric Bellegarde's avatar Cédric Bellegarde

Only lock if needed

parent 3737763a
......@@ -53,7 +53,7 @@ class SqlCursor:
Release thread lock allowing others threads execution
name = current_thread().getName() + obj.__class__.__name__
if name in App().cursors.keys():
if name in App().cursors.keys() and len(App().cursors.keys()) > 1:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment