Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
capture interupt exception
Browse files Browse the repository at this point in the history
  • Loading branch information
zcourts committed Apr 29, 2014
1 parent 83b24d2 commit 8d2025a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/com/datasift/client/FutureData.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ public T sync() {
// wait();
block.clear();
block.take();
} catch (InterruptedException ignore) {
} catch (InterruptedException e) {
if (interruptCause == null) {
interruptCause = e;
}
}
if (interruptCause != null) {
if (interruptCause instanceof DataSiftException) {
Expand Down

0 comments on commit 8d2025a

Please sign in to comment.