Skip to content
Snippets Groups Projects

Fix: run everything in the same thread event loop

Merged Pascal Palenda requested to merge fix/asyncio into feature/pure-python

When connected to an actual server, a runtime error was raised with the message: "Leaving task {task!r} does not match the current task {current_task!r}." My guess is that this was caused since the normal client calls were made in the main thread, and the event loop was running in a separate thread.

With this commit, all asyncio calls are made in the event loop thread.

Following this change, some other warnings and errors poped up. These are also fixed with the MR.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading