From 78ccac6b7aa7202ec6200a211252860a8c178704 Mon Sep 17 00:00:00 2001 From: malakaganga Date: Wed, 24 Apr 2024 11:47:00 +0530 Subject: [PATCH] Fix issue of unable to undeploy libs Fixes: https://github.com/wso2/micro-integrator/issues/3312 --- .../java/org/apache/synapse/config/SynapseConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java b/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java index 47ed64af38..ace07c6109 100644 --- a/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java +++ b/modules/core/src/main/java/org/apache/synapse/config/SynapseConfiguration.java @@ -2062,7 +2062,7 @@ public static void removeOneDeployedLib(String name) { Map.Entry libraryCountEntry = deployedLibs.get(name); if (libraryCountEntry != null) { Integer count = libraryCountEntry.getValue(); - if (count > 0) { + if (count > 1) { count--; libraryCountEntry.setValue(count); } else {