Skip to content

fix: close connection thread properly if BaseException raised in connect step#317

Merged
amyreese merged 1 commit intoomnilib:mainfrom
gpajot:dev
Feb 3, 2025
Merged

fix: close connection thread properly if BaseException raised in connect step#317
amyreese merged 1 commit intoomnilib:mainfrom
gpajot:dev

Conversation

@gpajot
Copy link
Contributor

@gpajot gpajot commented Jan 27, 2025

Description

Since the Connection._connect method currently only catches Exception (and not BaseException), if one is raised, the connection thread won't be closed and the program will hang on exit.

Fixes: close connection thread properly if BaseException raised in connect step

@gpajot gpajot marked this pull request as ready for review January 27, 2025 12:40
@amyreese amyreese merged commit 883695f into omnilib:main Feb 3, 2025
18 checks passed
@amyreese
Copy link
Member

amyreese commented Feb 3, 2025

Thank you!

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

Comments