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

Avoid over resume / suspend dispatch timer #22

Merged
merged 1 commit into from
Apr 19, 2018
Merged

Avoid over resume / suspend dispatch timer #22

merged 1 commit into from
Apr 19, 2018

Conversation

fiveze
Copy link
Contributor

@fiveze fiveze commented Apr 19, 2018

GCD timers can be somewhat sensitive. If you try and resume/suspend an already resumed/suspended timer, you will get a crash with a reason like:

BUG IN CLIENT OF LIBDISPATCH: Over-resume of an object

More information: https://medium.com/@danielgalasko/a-background-repeating-timer-in-swift-412cecfd2ef9

@fiveze fiveze mentioned this pull request Apr 19, 2018
@malcommac malcommac changed the base branch from develop to feature/0.5.2 April 19, 2018 08:08
@malcommac malcommac added the bug Something isn't working label Apr 19, 2018
@malcommac malcommac added this to the 0.5.2 milestone Apr 19, 2018
@malcommac malcommac merged commit fc039ba into malcommac:feature/0.5.2 Apr 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants