mail/view.rs: try restarting future if get bytes fails
parent
ce693904bf
commit
2db983ae1f
|
@ -396,6 +396,7 @@ impl MailView {
|
||||||
format!("Failed to open envelope: {}", err.to_string()),
|
format!("Failed to open envelope: {}", err.to_string()),
|
||||||
ERROR,
|
ERROR,
|
||||||
);
|
);
|
||||||
|
self.init_futures(context);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -798,6 +799,7 @@ impl Component for MailView {
|
||||||
Some(NotificationType::ERROR),
|
Some(NotificationType::ERROR),
|
||||||
));
|
));
|
||||||
log(format!("Failed to open envelope: {}", e.to_string()), ERROR);
|
log(format!("Failed to open envelope: {}", e.to_string()), ERROR);
|
||||||
|
self.init_futures(context);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1227,6 +1229,7 @@ impl Component for MailView {
|
||||||
Some(NotificationType::ERROR),
|
Some(NotificationType::ERROR),
|
||||||
));
|
));
|
||||||
log(e.to_string(), ERROR);
|
log(e.to_string(), ERROR);
|
||||||
|
self.init_futures(context);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -1301,6 +1304,7 @@ impl Component for MailView {
|
||||||
format!("Failed to open envelope: {}", err.to_string()),
|
format!("Failed to open envelope: {}", err.to_string()),
|
||||||
ERROR,
|
ERROR,
|
||||||
);
|
);
|
||||||
|
self.init_futures(context);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue