Skip to content

Commit 31ec1ad

Browse files
committed
Ref #28788: don't stop app when it's already being stopped
1 parent a855d5c commit 31ec1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/openanalytics/containerproxy/util/ProxyMappingManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public void dispatchAsync(String proxyId, String mapping, HttpServletRequest req
182182
if (proxyIdAttachment != null) {
183183
try {
184184
proxy = proxyService.getProxy(proxyIdAttachment.proxyId);
185-
if (proxy != null) {
185+
if (proxy != null && !proxy.getStatus().isUnavailable()) {
186186
logger.info(proxy, "Proxy unreachable/crashed, stopping it now");
187187
asyncProxyService.stopProxy(proxy, true);
188188
}

0 commit comments

Comments
 (0)