Skip to content

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
This was referenced Feb 12, 2025
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.

3 participants