mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
switch to while instead of loop
This commit is contained in:
committed by
holger krekel
parent
85f182067c
commit
4f9f67a477
@@ -115,20 +115,20 @@ pub unsafe fn dc_job_do_DC_JOB_CONFIGURE_IMAP(context: &Context, _job: &Job) {
|
|||||||
|
|
||||||
const STEP_3_INDEX: u8 = 13;
|
const STEP_3_INDEX: u8 = 13;
|
||||||
let mut step_counter: u8 = 0;
|
let mut step_counter: u8 = 0;
|
||||||
loop {
|
while !s.shall_stop_ongoing {
|
||||||
step_counter = step_counter + 1;
|
step_counter = step_counter + 1;
|
||||||
|
|
||||||
if s.shall_stop_ongoing {
|
// if s.shall_stop_ongoing {
|
||||||
// if step_counter == 3 {
|
// if step_counter == 3 {
|
||||||
// // Skip Autoconfig? (ok_to_continue 7)
|
// // Skip Autoconfig? (ok_to_continue 7)
|
||||||
// // But wouldn't it need to reset s.shall_stop_ongoing then, too?
|
// // But wouldn't it need to reset s.shall_stop_ongoing then, too?
|
||||||
// // It needs to run sth. but fail afterwards anyway, I'm still not sure about this, because the C code doesn't work like this so I guess we should ignore it
|
// // It needs to run sth. but fail afterwards anyway, I'm still not sure about this, because the C code doesn't work like this so I guess we should ignore it
|
||||||
// step_counter = STEP_3_INDEX;
|
// step_counter = STEP_3_INDEX;
|
||||||
// } else {
|
// } else {
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
|
|
||||||
let success = match step_counter {
|
let success = match step_counter {
|
||||||
// Read login parameters from the database
|
// Read login parameters from the database
|
||||||
|
|||||||
Reference in New Issue
Block a user