fixed issue 1072
This commit is contained in:
1 parent
952a29d5da
commit
62be48decf
2 files changed
+2
-2
No files matched your search
@@ -1 +1 @@
|
||||
Version 2.0.9 (2012-10-07 10:12:01) dev
|
||||
Version 2.0.9 (2012-10-07 10:13:16) dev
|
||||
+1
-1
@@ -521,7 +521,7 @@ class ConnectionPool(object):
|
||||
@staticmethod
|
||||
def close_all_instances(action):
|
||||
""" to close cleanly databases in a multithreaded environment """
|
||||
db_group = getattr(THREAD_LOCAL,'db_instances',{}).items()
|
||||
dbs = getattr(THREAD_LOCAL,'db_instances',{}).items()
|
||||
for db_uid, db_group in dbs:
|
||||
for db in db_group:
|
||||
db._adapter.close(action)
|
||||
|
||||
Reference in new issue
Block a user