diff --git a/asyncpg/pool.py b/asyncpg/pool.py index 7b588c27..8a00d64b 100644 --- a/asyncpg/pool.py +++ b/asyncpg/pool.py @@ -396,7 +396,7 @@ def __init__(self, *connect_args, async def _async__init__(self): if self._initialized: - return + return self if self._initializing: raise exceptions.InterfaceError( 'pool is being initialized in another task')