diff --git a/memed.py b/memed.py index bcf026d..06d69f5 100644 --- a/memed.py +++ b/memed.py @@ -213,8 +213,9 @@ def main(): coro = asyncio.start_unix_server(handle_client, sys.argv[1], loop=loop) - pool = loop.create_task(asyncpg.create_pool(**config.db)) + pool = loop.run_until_complete(asyncpg.create_pool(**config.db)) db = pool + server = loop.run_until_complete(coro) if config.bot_token: