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

Prevent consumer#run to override running consumer #305

Merged
merged 2 commits into from
Mar 7, 2019

Conversation

tulios
Copy link
Owner

@tulios tulios commented Mar 6, 2019

Some users accidentally called consumer#run several times after having a running consumer, this can cause a lot of issues since run will override the reference of the running consumer and create a new one. This PR adds a check for this case and turns run into a noOp if the consumer is already running.

@tulios tulios requested a review from Nevon March 6, 2019 14:01
@tulios tulios merged commit 9d1fc69 into master Mar 7, 2019
@tulios tulios deleted the prevent-consumer-run-to-override-running-consumer branch March 14, 2019 12:48
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.

2 participants