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 @Override
public void thresholdDefined(int threshold) throws DbException { public void thresholdDefined(int threshold) {
db.transaction(false, txn -> { try {
socialBackupManager db.transaction(false, txn -> {
.createBackup(txn, (List<ContactId>) custodians, threshold); socialBackupManager
ShardsSentFragment fragment = new ShardsSentFragment(); .createBackup(txn, (List<ContactId>) custodians, threshold);
showNextFragment(fragment); ShardsSentFragment fragment = new ShardsSentFragment();
}); showNextFragment(fragment);
});
} catch (DbException e) {
e.printStackTrace();
}
} }
@Override @Override