aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-11-24 09:19:44 +0100
committerJon Marius Venstad <venstad@gmail.com>2020-11-26 10:20:42 +0100
commita75dfebb439fcba65069a42129834646fc671e59 (patch)
tree5568faa3b8c62371b07acb4b3cf1129e29a188ad /messagebus
parent36fbb78edda013a6e445364890e0477e969cd4df (diff)
Remove always-false if clause
Diffstat (limited to 'messagebus')
-rwxr-xr-xmessagebus/src/main/java/com/yahoo/messagebus/ProtocolRepository.java5
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) {