forcecraft / aion

An e-learning platform written in Elixir and Elm based on real-time gameplay
6 stars 0 forks source link

fix(elm): Remove race condition in progress bar #192

Closed mrapacz closed 6 years ago

mrapacz commented 6 years ago

Summary This PR deals with race condition we've got due to current-time task. I'm not 100% sure, but I bet the problem with progress bar not stopping occurs when the QuestionBreak message arrives in between the call to Time task and its response.

The changes in this PR double check that the progressBar is still Running when the time is received.

Related issues closes: #190

Test plan manual