[Fix] Simply delete the sessions file if not readable on load
This commit is contained in:
parent
5dc94514e1
commit
19331b9648
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue