diff options
author | Jon Marius Venstad <venstad@gmail.com> | 2020-11-24 09:19:44 +0100 |
---|---|---|
committer | Jon Marius Venstad <venstad@gmail.com> | 2020-11-26 10:20:42 +0100 |
commit | a75dfebb439fcba65069a42129834646fc671e59 (patch) | |
tree | 5568faa3b8c62371b07acb4b3cf1129e29a188ad /messagebus/src | |
parent | 36fbb78edda013a6e445364890e0477e969cd4df (diff) |
Remove always-false if clause
Diffstat (limited to 'messagebus/src')
-rwxr-xr-x | messagebus/src/main/java/com/yahoo/messagebus/ProtocolRepository.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/messagebus/src/main/java/com/yahoo/messagebus/ProtocolRepository.java b/messagebus/src/main/java/com/yahoo/messagebus/ProtocolRepository.java index d3ab41331ae..4ca4887221a 100755 --- a/messagebus/src/main/java/com/yahoo/messagebus/ProtocolRepository.java +++ b/messagebus/src/main/java/com/yahoo/messagebus/ProtocolRepository.java @@ -84,10 +84,7 @@ public class ProtocolRepository { try { ret = protocol.createPolicy(policyName, policyParam); } catch (RuntimeException e) { - log.log(Level.SEVERE, "Protcol '" + protocolName + "' threw an exception: " + e.getMessage(), e); - if (ret != null) { - ret.destroy(); - } + log.log(Level.SEVERE, "Protocol '" + protocolName + "' threw an exception: " + e.getMessage(), e); return null; } if (ret == null) { |