Skip to content

Commit 7dc5872

Browse files
authored
fix: return the pool from _async_init__ if it's already initialized (#1104)
1 parent e848814 commit 7dc5872

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncpg/pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def __init__(self, *connect_args,
396396

397397
async def _async__init__(self):
398398
if self._initialized:
399-
return
399+
return self
400400
if self._initializing:
401401
raise exceptions.InterfaceError(
402402
'pool is being initialized in another task')

0 commit comments

Comments
 (0)