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>
(cherry picked from commit
a90b34b052c46e4d405b1c477a3a5a0f47e1bd98)
@Override
public Future<Void> scheduleReconnect(final Throwable cause) {
- return executor.newFailedFuture(new Throwable());
+ return executor.newFailedFuture(new Throwable("Reconnect failed", cause));
}
@Override