fixed issue 1072

This commit is contained in:
mdipierro
2012-10-07 10:13:20 -05:00
parent 5b19b606c4
commit aa2ff6e3f2
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.0.9 (2012-10-07 10:12:01) dev
Version 2.0.9 (2012-10-07 10:13:16) dev

View File

@@ -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)