Recover on failed session load.

This commit is contained in:
Jesse Boyd 2017-03-23 10:20:54 +11:00
parent 1fa63d8452
commit 661f02de17
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -177,7 +177,7 @@ public class SessionManager {
try { try {
session = store.load(getKey(sessionKey)); session = store.load(getKey(sessionKey));
session.postLoad(); session.postLoad();
} catch (IOException e) { } catch (Throwable e) {
log.log(Level.WARNING, "Failed to load saved session", e); log.log(Level.WARNING, "Failed to load saved session", e);
session = new LocalSession(); session = new LocalSession();
} }