Skip to content

Conversation

@jnsebgosselin
Copy link
Member

@jnsebgosselin jnsebgosselin commented Oct 2, 2025

This pull request fixes a race condition in the qtwait function when the timeout parameter is set to None.

Previously, a TimeoutError could be incorrectly raised if the condition became false immediately after exiting the event loop, even though no timeout was specified. The updated logic ensures that TimeoutError is only raised when a timeout is actually set and reached, improving the reliability of the function.

@jnsebgosselin jnsebgosselin added the bug Something isn't working label Oct 2, 2025
@jnsebgosselin jnsebgosselin added this to the 0.9.3 milestone Oct 2, 2025
@jnsebgosselin jnsebgosselin merged commit 50c94cf into main Oct 6, 2025
1 check passed
@jnsebgosselin jnsebgosselin deleted the fix)qtwait_race_condition branch October 7, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants