Skip to content

Commit

Permalink
Make sure to set interrupt status of thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
pferraro committed Nov 23, 2016
1 parent 768c4ec commit b9a4700
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -193,6 +193,7 @@ public <R> CommandResponse<R> executeOnNode(Command<R, C> command, Node node) th
Future<R> future = this.dispatcher.sendMessageWithFuture(message, options);
return new SimpleCommandResponse<>(future.get());
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
return new SimpleCommandResponse<>(e);
} catch (ExecutionException e) {
return new SimpleCommandResponse<>(e);
Expand Down

0 comments on commit b9a4700

Please sign in to comment.