From a90b34b052c46e4d405b1c477a3a5a0f47e1bd98 Mon Sep 17 00:00:00 2001 From: "Claudio D. Gasparini" Date: Mon, 5 Oct 2015 15:36:00 +0200 Subject: [PATCH] Return throwable in NeverReconnectStrategy NeverReconnectStrategy returns empty throwable instead of passed throwabled with the failed previous connection reasons. Change-Id: I5695af09379f06a66c37ccf27293ff85657afeaa Signed-off-by: Claudio D. Gasparini --- .../opendaylight/protocol/framework/NeverReconnectStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/NeverReconnectStrategy.java b/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/NeverReconnectStrategy.java index 926183f973..824242cba6 100644 --- a/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/NeverReconnectStrategy.java +++ b/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/NeverReconnectStrategy.java @@ -32,7 +32,7 @@ public final class NeverReconnectStrategy implements ReconnectStrategy { @Override public Future scheduleReconnect(final Throwable cause) { - return executor.newFailedFuture(new Throwable()); + return executor.newFailedFuture(new Throwable("Reconnect failed", cause)); } @Override -- 2.36.6