Skip to content

Commit

Permalink
close unremoved connections (pool already removed the connection)
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Dec 15, 2023
1 parent 8e13af2 commit cc4d03c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vcr/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ def __exit__(self, *args):
readd_connections.append(connection)
for connection in readd_connections:
pool._put_conn(connection)
for connection in connections:
connection.close()


def reset_patchers():
Expand Down

0 comments on commit cc4d03c

Please sign in to comment.