Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings: coroutine 'ClientSession.close' was never awaited #175

Open
nicoddemus opened this issue Oct 1, 2018 · 0 comments
Open

Warnings: coroutine 'ClientSession.close' was never awaited #175

nicoddemus opened this issue Oct 1, 2018 · 0 comments

Comments

@nicoddemus
Copy link
Collaborator

I've seen this warnings in bottery's CI:

c:\projects\bottery\.tox\py35\lib\site-packages\bottery\bottery.py:107: RuntimeWarning: coroutine 'ClientSession.close' was never awaited
  self.session.close()
c:\projects\bottery\.tox\py35\lib\site-packages\bottery\bottery.py:107: RuntimeWarning: coroutine 'ClientSession.close' was never awaited
  self.session.close()

Seems like that line should be await self.session.close(), correct?

ivkalita added a commit to ivkalita/bottery that referenced this issue Oct 23, 2018
This patch fixes two problems in the Bottery.stop behavior:
1. self.session.close() was not awaited;
2. self.loop.close() causes an exception "Can not close running loop" in
some cases.
ivkalita added a commit to ivkalita/bottery that referenced this issue Oct 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant