mirror of
https://github.com/chatmail/core.git
synced 2026-05-01 20:36:31 +03:00
Use Rust for instead of while
This commit is contained in:
committed by
Floris Bruynooghe
parent
02fe3d1b99
commit
0c19fcd79f
@@ -801,8 +801,7 @@ fn job_perform(context: &Context, thread: Thread, probe_network: bool) {
|
|||||||
suspend_smtp_thread(context, true);
|
suspend_smtp_thread(context, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut tries = 0;
|
for _tries in 0..2 {
|
||||||
while tries <= 1 {
|
|
||||||
// this can be modified by a job using dc_job_try_again_later()
|
// this can be modified by a job using dc_job_try_again_later()
|
||||||
job.try_again = TryAgain::Dont;
|
job.try_again = TryAgain::Dont;
|
||||||
|
|
||||||
@@ -835,7 +834,6 @@ fn job_perform(context: &Context, thread: Thread, probe_network: bool) {
|
|||||||
if job.try_again != TryAgain::AtOnce {
|
if job.try_again != TryAgain::AtOnce {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
tries += 1
|
|
||||||
}
|
}
|
||||||
if Action::ConfigureImap == job.action || Action::ImexImap == job.action {
|
if Action::ConfigureImap == job.action || Action::ImexImap == job.action {
|
||||||
context
|
context
|
||||||
|
|||||||
Reference in New Issue
Block a user