Skip to content

Commit 920aa30

Browse files
authored
Merge pull request aio-libs-abandoned#673 from aio-libs/fix_671
Fix duplicate calls to pool.wait_closed() upon create_pool() exception
2 parents 52345bc + 58195ac commit 920aa30

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

CHANGES/671.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix duplicate calls to ``pool.wait_closed()`` upon ``create_pool()`` exception.

aioredis/pool.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ async def create_pool(address, *, db=None, password=None, ssl=None,
5959
except Exception:
6060
pool.close()
6161
await pool.wait_closed()
62-
await pool.wait_closed()
6362
raise
6463
return pool
6564

0 commit comments

Comments
 (0)