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

fix deadlock when starting / stopping the scheduler #369

Merged
merged 2 commits into from Aug 4, 2022

Conversation

JohnRoesler
Copy link
Contributor

What does this do?

fixes the deadlock when starting / stopping the scheduler more than once due to the stopChan being used improperly. The stopChan was only being listened to in the StartBlocking func and so when someone started asyc and stopped and started and then stopped the 2nd time it tried to send another message on the buffered channel which still had a message on it which was never read.

Which issue(s) does this PR fix/relate to?

resolves #355

List any changes that modify/break current functionality

Have you included tests for your changes?

Did you document any new/modified functionality?

  • Updated example_test.go
  • Updated README.md

Notes

@JohnRoesler JohnRoesler merged commit 772979f into main Aug 4, 2022
@JohnRoesler JohnRoesler deleted the scheduler-stop-deadlock branch August 4, 2022 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] - Starting and then stopping a scheduler twice causes a deadlock
1 participant