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

_safe_loop: Discard wrapped asyncio.run loop that was closed #1378

Merged

Conversation

zmedico
Copy link
Member

@zmedico zmedico commented Aug 31, 2024

Since commit cb0c09d, _get_running_loop can wrap loops from asyncio.run, so these loops need to be discarded if they've been closed.

Fixes: cb0c09d ("Support coroutine exitfuncs for non-main loops")
Bug: https://bugs.gentoo.org/938761
Bug: https://bugs.gentoo.org/761538

@zmedico zmedico force-pushed the bug_938761_safe_loop_replace_closed_loop branch from 7d93f2f to 1437a5a Compare August 31, 2024 18:49
Since commit cb0c09d, _get_running_loop can wrap loops from
asyncio.run, so these loops need to be discarded if they've been
closed.

Fixes: cb0c09d ("Support coroutine exitfuncs for non-main loops")
Bug: https://bugs.gentoo.org/938761
Bug: https://bugs.gentoo.org/761538
Signed-off-by: Zac Medico <[email protected]>
@zmedico zmedico force-pushed the bug_938761_safe_loop_replace_closed_loop branch from 1437a5a to ee17cbd Compare August 31, 2024 19:07
@gentoo-bot gentoo-bot merged commit ee17cbd into gentoo:master Aug 31, 2024
13 checks passed
@zmedico zmedico deleted the bug_938761_safe_loop_replace_closed_loop branch August 31, 2024 19:24
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.

2 participants