diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-07-26 22:17:08 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-07-27 15:06:56 +0300 |
commit | 2db983ae1ff14de2ee50436d48c7e513ea5c7643 (patch) | |
tree | 78f344d778c301d5d20d35465a05972428154753 /src/components/mail/view.rs | |
parent | ce693904bf173ae0364d62eaaab5f76b2afaaa6c (diff) |
mail/view.rs: try restarting future if get bytes fails
Diffstat (limited to 'src/components/mail/view.rs')
-rw-r--r-- | src/components/mail/view.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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; } } |