diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java b/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java index 78918a06a..c52242350 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java @@ -221,12 +221,11 @@ public class SynchronizationPoint { long remainingWait = TimeUnit.MILLISECONDS.toNanos(connection.getPacketReplyTimeout()); while (state == State.RequestSent || state == State.Initial) { try { - remainingWait = condition.awaitNanos( - remainingWait); if (remainingWait <= 0) { state = State.NoResponse; break; } + remainingWait = condition.awaitNanos(remainingWait); } catch (InterruptedException e) { LOGGER.log(Level.WARNING, "Thread interrupt while waiting for condition or timeout ignored", e); }