return false on error when checking if local backup already exists

This commit is contained in:
ameba23
2021-03-15 09:57:36 +01:00
parent 1c5e89b100
commit 37fb3bd79f

View File

@@ -69,13 +69,17 @@ public class DistributedBackupActivity extends BriarActivity implements
}
@Override
public void thresholdDefined(int threshold) throws DbException {
db.transaction(false, txn -> {
socialBackupManager
.createBackup(txn, (List<ContactId>) custodians, threshold);
ShardsSentFragment fragment = new ShardsSentFragment();
showNextFragment(fragment);
});
public void thresholdDefined(int threshold) {
try {
db.transaction(false, txn -> {
socialBackupManager
.createBackup(txn, (List<ContactId>) custodians, threshold);
ShardsSentFragment fragment = new ShardsSentFragment();
showNextFragment(fragment);
});
} catch (DbException e) {
e.printStackTrace();
}
}
@Override