try {
sessionStore.storeSession(new SignalProtocolAddress(session.address.getIdentifier(),
session.deviceId), new SessionRecord(session.sessionRecord));
- } catch (IOException e) {
+ } catch (Exception e) {
logger.warn("Failed to migrate session, ignoring", e);
}
}
final var session = new SessionRecord(inputStream.readAllBytes());
cachedSessions.put(key, session);
return session;
- } catch (IOException e) {
+ } catch (Exception e) {
logger.warn("Failed to load session, resetting session: {}", e.getMessage());
return null;
}