Router: Don't fail to start up on unchecked family key errors

This commit is contained in:
zzz
2022-05-28 10:53:25 -04:00
parent 17cc514bb1
commit e44eeaf5ae

View File

@ -1069,8 +1069,9 @@ public class Router implements RouterClock.ClockShiftListener {
if (!_familyKeyCryptoFail) {
try {
_familyKeyCrypto = new FamilyKeyCrypto(_context);
} catch (GeneralSecurityException gse) {
_log.error("Failed to initialize family key crypto", gse);
} catch (Exception e) {
// Could be IllegalArgumentException from key problems
_log.error("Failed to initialize family key crypto", e);
_familyKeyCryptoFail = true;
}
}