diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SmackFuture.java b/smack-core/src/main/java/org/jivesoftware/smack/SmackFuture.java index 076a16d4c..62b90f23f 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SmackFuture.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SmackFuture.java @@ -106,14 +106,9 @@ public abstract class SmackFuture implements Future, return getOrThrowExecutionException(); } - public synchronized final V getOrThrow() throws E { + public synchronized final V getOrThrow() throws E, InterruptedException { while (result == null && exception == null && !cancelled) { - try { - wait(); - } - catch (InterruptedException e) { - throw new RuntimeException(e); - } + wait(); } if (exception != null) {