Release connection in Sherpa service

This commit is contained in:
Andrea Schweer
2015-12-01 11:17:35 +13:00
parent 5d5105a273
commit bcca15f05a

View File

@@ -94,6 +94,10 @@ public class SHERPAService
sherpaResponse = new SHERPAResponse("SHERPA/RoMEO returned no response");
} catch (Exception e) {
log.warn("Encountered exception while contacting SHERPA/RoMEO: " + e.getMessage(), e);
} finally {
if (method != null) {
method.releaseConnection();
}
}
}