Skip to content
Permalink
Browse files

release the webhook connection after sending the POST

  • Loading branch information...
cbeer committed Jul 4, 2013
1 parent cbd2103 commit 94857ea9e9aa47003989cedcd3b7f780bf4b1948
Showing with 3 additions and 0 deletions.
  1. +3 −0 fcrepo-webhooks/src/main/java/org/fcrepo/webhooks/FedoraWebhooks.java
@@ -160,12 +160,15 @@ public void runHooks(final Node resource, final FedoraEvent event)
try {
LOGGER.debug("Firing callback for" + hook.getName());
client.execute(method);
method.releaseConnection();
} catch (final IOException e) {
LOGGER.warn(
"Got exception running webhook callback for {}: {}",
hook.getName(), e);
}



}
}

0 comments on commit 94857ea

Please sign in to comment.
You can’t perform that action at this time.