mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
fix: break out of accept() loop if there is an error transferring backup
This commit is contained in:
@@ -233,6 +233,7 @@ impl BackupProvider {
|
|||||||
let dbfile = dbfile.clone();
|
let dbfile = dbfile.clone();
|
||||||
if let Err(err) = Self::handle_connection(context.clone(), conn, auth_token, dbfile).await {
|
if let Err(err) = Self::handle_connection(context.clone(), conn, auth_token, dbfile).await {
|
||||||
warn!(context, "Error while handling backup connection: {err:#}.");
|
warn!(context, "Error while handling backup connection: {err:#}.");
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
info!(context, "Backup transfer finished successfully.");
|
info!(context, "Backup transfer finished successfully.");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user