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 Sweeper executor thread shutdown #25

Merged
merged 1 commit into from May 27, 2016

Conversation

saulius
Copy link

@saulius saulius commented May 27, 2016

Must happen outside the loop but with a condition that it has not happened yet as the exception in the worker thread might have propagated and stopped it already in the catch block.

As discussed in https://github.com/vinted/camus/pull/24/files#r64889614

@vidma @ljank @astrauka

Must happen outside the loop but with a condition that it has not
happened yet as the exception in the worker thread might have propagated
and stopped in already in the catch block.
@astrauka
Copy link

👍

@vidma
Copy link

vidma commented May 27, 2016

👍

btw,

as the exception in the worker thread might have propagated and stopped in already in the catch block.

not sure if this is possible (as throw e; would exist the fn, without continuing after the loop..), but as it is now, it's certainly on the safe side.

@saulius saulius merged commit 0c428c6 into master May 27, 2016
@saulius saulius deleted the bugfix/fix_sweeper_executor_thread_shutdown branch May 27, 2016 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants