[Fix] Simply delete the sessions file if not readable on load

This commit is contained in:
Robert von Burg 2015-10-16 18:20:25 +02:00
parent 5dc94514e1
commit 19331b9648
1 changed files with 3 additions and 1 deletions

View File

@ -1089,7 +1089,9 @@ public class DefaultPrivilegeHandler implements PrivilegeHandler {
certificateStubs = reader.read();
} catch (Exception e) {
throw new PrivilegeException("Failed to load sessions!", e);
logger.error("Failed to load sessions!", e);
this.persistSessionsPath.delete();
return false;
}
if (certificateStubs.isEmpty()) {