-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Fix race condition in dispatcher start/stop #887
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, seems like a simple fix.
Can we test it?
Args: | ||
ready (:obj:`threading.Event`, optional): If specified, the event will be set once the | ||
dispatcher is ready. | ||
|
||
""" | ||
if self.running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we do ready.set()
here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that makes sense. i'll fix.
Codecov Report
@@ Coverage Diff @@
## master #887 +/- ##
=========================================
- Coverage 91.89% 91.7% -0.19%
=========================================
Files 101 101
Lines 4057 4063 +6
Branches 621 623 +2
=========================================
- Hits 3728 3726 -2
- Misses 194 198 +4
- Partials 135 139 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it :)
@bomjacob I don't think that we can properly test it. Edit: properly = in proper order |
Fixes #881