Skip to content

Commit

Permalink
release the webhook connection after sending the POST
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jul 4, 2013
1 parent cbd2103 commit 94857ea
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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);
}



}
}

Expand Down

0 comments on commit 94857ea

Please sign in to comment.