fixed issue 1072
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.0.9 (2012-10-07 10:12:01) dev
|
||||
Version 2.0.9 (2012-10-07 10:13:16) dev
|
||||
|
||||
@@ -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