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

delay creation of runner object #457

Merged
merged 2 commits into from Apr 3, 2024
Merged

delay creation of runner object #457

merged 2 commits into from Apr 3, 2024

Conversation

barbibulle
Copy link
Collaborator

On some versions of Python, the Event object created in the Central and Peripheral class initializers is called before the main asyncio loop is created, leading to an exception.
This moves the instantiation of the object into a local async function, which solves the problem.

@barbibulle barbibulle requested a review from zxzxwu April 1, 2024 21:27
@barbibulle barbibulle merged commit e6913a3 into main Apr 3, 2024
51 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants