Skip to content

Commit

Permalink
Merge pull request #244 from tonal/patch-1
Browse files Browse the repository at this point in the history
Fix dictionary changed size
  • Loading branch information
IlyaSkriblovsky committed Nov 28, 2018
2 parents b3357d6 + ddbdee0 commit db7f5f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/source/NEWS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Features

- Allow passing only kwargs to `Database.create_collection()`

Bugfixes
^^^^^^^^

- Fixed RuntimeError: dictionary changed size during iteration in ConnectionPool.dicconnect #243


Release 18.2.0 (2018-07-19)
---------------------------
Expand Down
2 changes: 1 addition & 1 deletion txmongo/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def drop_database(self, name_or_database):

def disconnect(self):
self.__pinger_discovery.stop()
for pinger in self.__pingers.values():
for pinger in list(self.__pingers.values()):
pinger.connector.disconnect()

for factory in self.__pool:
Expand Down

0 comments on commit db7f5f3

Please sign in to comment.