Return throwable in NeverReconnectStrategy 15/27915/2
authorClaudio D. Gasparini <cgaspari@cisco.com>
Mon, 5 Oct 2015 13:36:00 +0000 (15:36 +0200)
committerClaudio D. Gasparini <cgaspari@cisco.com>
Tue, 6 Oct 2015 06:23:55 +0000 (08:23 +0200)
NeverReconnectStrategy returns empty throwable instead of
passed throwabled with the failed previous
connection reasons.

Change-Id: I5695af09379f06a66c37ccf27293ff85657afeaa
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/NeverReconnectStrategy.java

index 926183f973ed43ec722a8350b846d83d4a1024f6..824242cba6eccbe228cc0d7c271de7b703443c82 100644 (file)
@@ -32,7 +32,7 @@ public final class NeverReconnectStrategy implements ReconnectStrategy {
 
     @Override
     public Future<Void> scheduleReconnect(final Throwable cause) {
-        return executor.newFailedFuture(new Throwable());
+        return executor.newFailedFuture(new Throwable("Reconnect failed", cause));
     }
 
     @Override