sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dul...@apache.org
Subject [sling-org-apache-sling-testing-clients] branch master updated: Re-throw InterruptedException in Polling
Date Tue, 04 Dec 2018 14:22:59 GMT
This is an automated email from the ASF dual-hosted git repository.

dulvac pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-clients.git


The following commit(s) were added to refs/heads/master by this push:
     new 51c68b8  Re-throw InterruptedException in Polling
51c68b8 is described below

commit 51c68b8bbb8074349fe5e51c66fc8766e3bb70f1
Author: Valentin Olteanu <volteanu@adobe.com>
AuthorDate: Tue Dec 4 14:13:56 2018 +0100

    Re-throw InterruptedException in Polling
---
 src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java b/src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java
index f08deeb..60296de 100644
--- a/src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java
+++ b/src/main/java/org/apache/sling/testing/clients/util/poller/Polling.java
@@ -115,6 +115,8 @@ public class Polling implements Callable<Boolean> {
                     waited = System.currentTimeMillis() - start;
                     return;
                 }
+            } catch (InterruptedException e) {
+                throw e; // Never inhibit InterruptedException
             } catch (Exception e) {
                 lastException = e;
             }


Mime
View raw message