fix unloading protected session after the timeout, fixes #571

This commit is contained in:
zadam 2019-06-19 22:23:55 +02:00
parent 5372f71faa
commit a7cf3cdf05
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ async function setupProtectedSession(password) {
}
protectedSessionHolder.setProtectedSessionId(response.protectedSessionId);
protectedSessionHolder.touchProtectedSession();
await treeService.reload();

View File

@ -37,6 +37,8 @@ function isProtectedSessionAvailable() {
function touchProtectedSession() {
if (isProtectedSessionAvailable()) {
lastProtectedSessionOperationDate = new Date();
setProtectedSessionId(utils.getCookie(PROTECTED_SESSION_ID_KEY));
}
}