You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by tm...@apache.org on 2020/04/07 21:38:50 UTC

[sling-org-apache-sling-distribution-journal] 05/07: SLING-9340 - Don't raise IE upon enqueue

This is an automated email from the ASF dual-hosted git repository.

tmaret pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git

commit c1d39257cf01fa96e2d1e9e66011472c23326fdc
Author: tmaret <tm...@adobe.com>
AuthorDate: Tue Apr 7 23:07:38 2020 +0200

    SLING-9340 - Don't raise IE upon enqueue
---
 .../distribution/journal/impl/subscriber/DistributionSubscriber.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java b/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java
index 3e601ac..8ca48ff 100644
--- a/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java
+++ b/src/main/java/org/apache/sling/distribution/journal/impl/subscriber/DistributionSubscriber.java
@@ -341,11 +341,10 @@ public class DistributionSubscriber implements DistributionAgent {
                     return;
                 }
             }
-            throw new InterruptedException();
         } catch (InterruptedException e) {
             Thread.currentThread().interrupt();
-            throw new RuntimeException();
         }
+        throw new RuntimeException();
     }
 
     private void processQueue() {