diff --git a/memed.py b/memed.py index ab0a703..fb5feee 100644 --- a/memed.py +++ b/memed.py @@ -170,7 +170,7 @@ if __name__ == '__main__': coro = asyncio.start_unix_server(handle_client, sys.argv[1], loop=loop) - db = loop.run_until_complete(asyncpg.create_pool(**config.db)) + db = loop.create_task(asyncpg.create_pool(**config.db)) server = loop.run_until_complete(coro) if config.bot_token: