diff --git a/pom.xml b/pom.xml index bf3e7b6..6aa9f93 100644 --- a/pom.xml +++ b/pom.xml @@ -25,7 +25,7 @@ au.gov.aims atlasmapper war - 2.4.5 + 2.4.6 AtlasMapper server and clients This application compiled as a single War, that can be deployed in Tomcat, without any other dependency.\n\ It contains:\n\ diff --git a/src/main/webapp/public/layersInfo.jsp b/src/main/webapp/public/layersInfo.jsp index 69a19cf..0ec569d 100644 --- a/src/main/webapp/public/layersInfo.jsp +++ b/src/main/webapp/public/layersInfo.jsp @@ -58,8 +58,15 @@ if (Utils.isNotBlank(iso19115_19139url)) { ThreadLogger logger = new ThreadLogger(); URLSaveState mapState; - try (URLCache urlCache = new URLCache(configManager)) { + + URLCache urlCache = null; + try { + urlCache = new URLCache(configManager); mapState = configManager.getMapStateForDataset(logger, urlCache, clientConfig, iso19115_19139url, false); + } finally { + if (urlCache != null) { + urlCache.close(); + } } if (mapState == null) {