Abort on failing imap configuring

This commit is contained in:
Hocuri
2020-06-15 14:48:14 +02:00
parent 68e3bce60e
commit 9f7567c1d1

View File

@@ -461,7 +461,10 @@ async fn try_imap_connections(
.await .await
.is_ok() .is_ok()
{ {
return Ok(()); // we directly return here if it was autoconfig or the connection succeeded return Ok(());
}
if was_autoconfig {
bail!("autoconfig did not succeed");
} }
progress!(context, 670); progress!(context, 670);
@@ -495,7 +498,7 @@ async fn try_imap_connection(
return Ok(()); return Ok(());
} }
if was_autoconfig { if was_autoconfig {
return Ok(()); bail!("autoconfig did not succeed");
} }
progress!(context, 650 + variation * 30); progress!(context, 650 + variation * 30);