layerqa / aiocryptopay

https://t.me/CryptoBot api asynchronous python wrapper
https://pypi.org/project/aiocryptopay/
MIT License
79 stars 18 forks source link

BaseClient. RuntimeError: This event loop is already running #1

Closed justbarl closed 1 year ago

justbarl commented 1 year ago

While I've been trying to run the code, I got RuntimeError. To solve it, I replaced from self._loop.run_until_complete(self._session.close()) to asyncio.create_task(self._session.close()) in del BaseClient class and it's works! Author, please replace it in pypi.org

layerqa commented 1 year ago

fixed adding session close function