diff --git a/src/redis.rs b/src/redis.rs index c9705458a..52853a433 100644 --- a/src/redis.rs +++ b/src/redis.rs @@ -77,8 +77,6 @@ impl Actor for RedisActor { // we stop current context, supervisor will restart it. if let Some(timeout) = act.backoff.next_backoff() { ctx.run_later(timeout, |_, ctx| ctx.stop()); - } else { - ctx.stop(); } } }) @@ -88,8 +86,6 @@ impl Actor for RedisActor { // we stop current context, supervisor will restart it. if let Some(timeout) = act.backoff.next_backoff() { ctx.run_later(timeout, |_, ctx| ctx.stop()); - } else { - ctx.stop(); } }) .wait(ctx);