From 2db983ae1ff14de2ee50436d48c7e513ea5c7643 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Sun, 26 Jul 2020 22:17:08 +0300 Subject: [PATCH] mail/view.rs: try restarting future if get bytes fails --- src/components/mail/view.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/mail/view.rs b/src/components/mail/view.rs index a0d26cbf..86d200d1 100644 --- a/src/components/mail/view.rs +++ b/src/components/mail/view.rs @@ -396,6 +396,7 @@ impl MailView { format!("Failed to open envelope: {}", err.to_string()), ERROR, ); + self.init_futures(context); return; } } @@ -798,6 +799,7 @@ impl Component for MailView { Some(NotificationType::ERROR), )); log(format!("Failed to open envelope: {}", e.to_string()), ERROR); + self.init_futures(context); return; } } @@ -1227,6 +1229,7 @@ impl Component for MailView { Some(NotificationType::ERROR), )); log(e.to_string(), ERROR); + self.init_futures(context); return true; } }; @@ -1301,6 +1304,7 @@ impl Component for MailView { format!("Failed to open envelope: {}", err.to_string()), ERROR, ); + self.init_futures(context); return true; } }