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
For #39: Handling InterruptedException properly #42
Conversation
@paulodamaso/z this pull request is too small, just 7 lines changed (less than 10), there will be no formal code review, see §53 and §28; in the future, try to make sure your pull requests are not too small; @amihaiemil/z please review this and merge or reject |
throw new IllegalStateException( | ||
"Exception while waiting for Wallet!", ex | ||
); | ||
} catch (final InterruptedException iex) { | ||
Thread.currentThread().interrupt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@paulodamaso after interrupting the Thread, shouldn't we throw IllegalStateException as well? :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amihaiemil According to the ticket description and the documentation provided we must choose between one of two: either rethrow the exception or interrupt the thread
@amihaiemil Answered, please take a look |
@paulodamaso right, I forgot, sorry :) |
@rultor merge it |
@amihaiemil OK, I'll try to merge now. You can check the progress of the merge here |
@amihaiemil Done! FYI, the full log is here (took me 2min) |
Job |
This job is not in scope |
For #39: Handling
InterruptedException
properlyThread.currentThread().interrupt();
onInterruptedException