Skip to content

chore: add check for closed connector #1269

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

kgala2
Copy link
Contributor

@kgala2 kgala2 commented Apr 7, 2025

Draft-PR to check if the connector's been closed before trying to connect using the same engine.

  1. Throws error if the connector has been closed
  2. Continues to connect otherwise

@@ -463,13 +468,15 @@ def close(self) -> None:
self._loop.call_soon_threadsafe(self._loop.stop)
# wait for thread to finish closing (i.e. loop to stop)
self._thread.join()
self._closed = True
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not necessary as synchronous close calls close_async so should get closed by close_async

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