This is an automated email from the ASF dual-hosted git repository. amccright pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push: new 61ddc3d Shutdown executor in doPriv block 61ddc3d is described below commit 61ddc3d384bd27eba59207a96ad4ed7187d39ab6 Author: Andy McCright <j.andrew.mccri...@gmail.com> AuthorDate: Wed Jan 3 13:52:07 2018 -0600 Shutdown executor in doPriv block --- .../java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java b/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java index 5da7a5b..ab50780 100644 --- a/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java +++ b/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java @@ -18,6 +18,8 @@ */ package org.apache.cxf.jaxrs.sse.client; +import java.security.AccessController; +import java.security.PrivilegedAction; import java.util.Collection; import java.util.concurrent.CopyOnWriteArrayList; import java.util.concurrent.Executors; @@ -259,7 +261,11 @@ public class SseEventSourceImpl implements SseEventSource { } if (executor != null && !managedExecutor) { - executor.shutdown(); + AccessController.doPrivileged((PrivilegedAction<Void>) () -> { + executor.shutdown(); + return null; + }); + executor = null; managedExecutor = true; } -- To stop receiving notification emails like this one, please contact ['"commits@cxf.apache.org" <commits@cxf.apache.org>'].