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

Fixes Dendrite new loop close #2654

Merged

Conversation

thewhaleking
Copy link
Contributor

A bug was reported by a user (taogon):
image

This stems from the fact that in the case of an exception encountered during the getting of the event loop or during the execution of a coroutine with it, we create a new event loop, and run again with this new event loop. We then close the event loop (after setting it as the main event loop for the thread), and then attempt to reuse this closed event loop in Dendrite.close_session.

This PR adds a flag so the logic can all remain in place, but allows the event loop to be closed during the close_session method.

@thewhaleking thewhaleking requested a review from a team February 10, 2025 16:24
@thewhaleking thewhaleking merged commit 9661a37 into staging-pre-merge-new-async Feb 10, 2025
15 checks passed
@thewhaleking thewhaleking deleted the fix/thewhaleking/dendrite-loop-close branch February 10, 2025 16:36
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