-
Notifications
You must be signed in to change notification settings - Fork 3
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 when stopping before spinner fully built #3
Conversation
I'm not seeing what the failure is. master also fails (on my local env):
|
Hi @dnmurray! It's been a long time since I released this project. Yes, you are right that ticker could create a race condition because the mutex could be closed before assigning the ticker in the goroutine and calling stop before it's assigned making a Image for a better explanation: As you say you can or move the ticker creation outside the goroutine (now is inside the mutex) or wrap the goroutine assignations with the mutex. I'll take a look at the tests in the following days and fix them. I will notify you when I have found the problem with the color test. Thanks and sorry for the error :( |
@slok Thanks for the reply, and the library! |
Fixed in #4 You can rebase over master and try again! :) |
97aaa2e
to
7897291
Compare
Updated, passing. Thanks for the fixes. |
@slok Could you please cut a new release tag? We're using |
We're running into a race condition that is fairly repeatable:
I think moving the creation of the timer out of the goroutine will solve the problem.
phase2/rig#160