You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/01/19 16:16:09 UTC

[isis] 04/07: ISIS-2223: "InterruptedException" should not be ignored

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

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git

commit f9f8092a6dc09f86bc6e941042aa26e837a4696a
Author: Andi Huber <ah...@apache.org>
AuthorDate: Sun Jan 19 17:04:07 2020 +0100

    ISIS-2223: "InterruptedException" should not be ignored
---
 .../isis/core/commons/internal/concurrent/_ConcurrentTaskList.java   | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/core/commons/src/main/java/org/apache/isis/core/commons/internal/concurrent/_ConcurrentTaskList.java b/core/commons/src/main/java/org/apache/isis/core/commons/internal/concurrent/_ConcurrentTaskList.java
index 54a0429..389fc9c 100644
--- a/core/commons/src/main/java/org/apache/isis/core/commons/internal/concurrent/_ConcurrentTaskList.java
+++ b/core/commons/src/main/java/org/apache/isis/core/commons/internal/concurrent/_ConcurrentTaskList.java
@@ -124,8 +124,11 @@ public class _ConcurrentTaskList {
                     try {
                         future.get();
                         tasksExecuted.increment();
-                    } catch (InterruptedException | ExecutionException e) {
+                    } catch (ExecutionException e) {
                         // ignore, continue waiting on tasks
+                    } catch (InterruptedException e) {
+                        // Restore interrupted state...
+                        Thread.currentThread().interrupt();
                     }
                     
                 }