You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2017/03/08 16:24:45 UTC
tomee git commit: Not interested in any exception
Repository: tomee
Updated Branches:
refs/heads/tomee-1.7.x 70c1bd23e -> 5e0704878
Not interested in any exception
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/5e070487
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/5e070487
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/5e070487
Branch: refs/heads/tomee-1.7.x
Commit: 5e070487833a9b30f8b60c3661b11757f006a9ad
Parents: 70c1bd2
Author: AndyGee <an...@gmx.de>
Authored: Wed Mar 8 17:21:12 2017 +0100
Committer: AndyGee <an...@gmx.de>
Committed: Wed Mar 8 17:21:12 2017 +0100
----------------------------------------------------------------------
.../src/main/java/org/apache/openejb/util/Pool.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/5e070487/container/openejb-core/src/main/java/org/apache/openejb/util/Pool.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/util/Pool.java b/container/openejb-core/src/main/java/org/apache/openejb/util/Pool.java
index e29fc67..08c87b7 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/util/Pool.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/util/Pool.java
@@ -28,7 +28,6 @@ import java.util.NoSuchElementException;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
-import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
@@ -481,10 +480,11 @@ public class Pool<T> {
// flush and sweep
flush();
+
try {
sweeper.run();
- } catch (final RejectedExecutionException e) {
- //Ignore
+ } catch (final Exception ignore) {
+ //no-op
}
// Drain all leases