Skip to content
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

Bugfix: timer "pause" delay passed in secs when expecting ms #1214

Merged
merged 2 commits into from Aug 27, 2018

Conversation

avanwinkle
Copy link
Collaborator

This PR fixes a bug where the Timer.pause() method handles pause duration in seconds but DelayManager.add() expects an argument in milliseconds. The result is that pauses are uselessly brief.

This PR takes the timer argument and multiplies by 1000 before passing the delay. Verified working via log event timestamps.

@avanwinkle avanwinkle added the bug label Aug 24, 2018
@jabdoa2
Copy link
Collaborator

jabdoa2 commented Aug 24, 2018

Looks like we got a test which relies on the wrong behavior

@avanwinkle avanwinkle merged commit 78cd002 into missionpinball:dev Aug 27, 2018
@avanwinkle avanwinkle deleted the bugfix-timer-pause-delay branch August 27, 2018 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants