-
Notifications
You must be signed in to change notification settings - Fork 64
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 sending commands to multiple frontends. #338
Conversation
This reworks the way that new channels are added to a scope to work more synchronously and avoid some race conditions.
Codecov Report
@@ Coverage Diff @@
## master #338 +/- ##
=======================================
Coverage 60.23% 60.23%
=======================================
Files 16 16
Lines 596 596
=======================================
Hits 359 359
Misses 237 237
Continue to review full report at Codecov.
|
Thanks! I can confirm that this fixes the original issue. I'll just need to update the |
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.
This looks good--thanks for the fix! I've verified that MeshCat.jl also works with this change.
end | ||
while isready(pool.new_connections) | ||
push!(pool.connections, take!(pool.new_connections)) | ||
wait(pool.condition) |
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.
Little tiny race condition possible here if a new condition arrives in between isempty
and wait
. This might need a lock, eventually.
sleep(0.25) | ||
@test value(w1) == "updated" | ||
@test value(w2) == "updated" | ||
end |
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.
sweet tests!
Could we ask you guys for a new tag with this fix? CC:@rdeits. |
This also reworks the way that new channels are added to a scope to work more
synchronously and avoid some race conditions.
Fixes #337 .