fix: break out of accept() loop if there is an error transferring backup

This commit is contained in:
link2xt
2024-10-05 14:48:43 +00:00
parent 2e6d3aebae
commit 0f43d5d8f4

View File

@@ -233,6 +233,7 @@ impl BackupProvider {
let dbfile = dbfile.clone();
if let Err(err) = Self::handle_connection(context.clone(), conn, auth_token, dbfile).await {
warn!(context, "Error while handling backup connection: {err:#}.");
break;
} else {
info!(context, "Backup transfer finished successfully.");
break;