[java] Restoring thread interruption status before rethrowing an exception
@@ -216,6 +216,7 @@ public FluentWait(T input, java.time.Clock clock, Sleeper sleeper) {
throw new RuntimeException(cause);
} catch (InterruptedException cause) {
+ Thread.currentThread().interrupt();
throw new RuntimeException(cause);
} catch (java.util.concurrent.TimeoutException cause) {
throw new TimeoutException("Supplied function might have stalled", cause);
