From 69169708ef1328c66fd522615c2c1c8bb36580a2 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Wed, 25 Aug 2021 09:07:58 -0400 Subject: [PATCH] fix finalization code flow --- src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index d29a2c9..1f720a6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -282,13 +282,12 @@ fn main() { tries += 1; if tries >= 30 { error!("Failed to finalize: unable to generate valid 2fa codes"); - break; + return; } - continue; } Err(err) => { error!("Failed to finalize: {}", err); - break; + return; } } }