From 6624af63e39c55000d4493d05eecb0f8848ab633 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sun, 27 May 2018 09:55:41 +0200 Subject: [PATCH] Keep running unconnected actor forever if `backoff` says so --- src/redis.rs | 4 ---- 1 file changed, 4 deletions(-) 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);