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

BlueZDBus backend: Incorrect usage of ensure_future() #471

Closed
devbis opened this issue Mar 3, 2021 · 1 comment
Closed

BlueZDBus backend: Incorrect usage of ensure_future() #471

devbis opened this issue Mar 3, 2021 · 1 comment
Assignees

Comments

@devbis
Copy link
Contributor

devbis commented Mar 3, 2021

Here is a typo

task = asyncio.get_event_loop().ensure_future(self._cleanup_all())

that raises

AttributeError: '_UnixSelectorEventLoop' object has no attribute 'ensure_future'

Should be replaced with
task = asyncio.ensure_future(self._cleanup_all())

@devbis devbis changed the title Incorrect usage of ensure_future() in BlueZDBus backend BlueZDBus backend: Incorrect usage of ensure_future() Mar 3, 2021
@hbldh hbldh self-assigned this Mar 3, 2021
@hbldh
Copy link
Owner

hbldh commented Mar 3, 2021

Ah, this was a change introduced yesterday. Will fix it immediately.

@hbldh hbldh closed this as completed in 411aaff Mar 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants