progress of tar import through WS

This commit is contained in:
zadam
2019-02-10 16:36:25 +01:00
parent 51175e3676
commit cde68abec9
11 changed files with 47 additions and 18 deletions

View File

@@ -8,7 +8,7 @@ let protectedSessionId = null;
optionsInitService.optionsReady.then(options => protectedSessionTimeout = options.protectedSessionTimeout);
setInterval(() => {
if (lastProtectedSessionOperationDate !== null && new Date().getTime() - lastProtectedSessionOperationDate.getTime() > protectedSessionTimeout * 1000) {
if (lastProtectedSessionOperationDate !== null && Date.now() - lastProtectedSessionOperationDate.getTime() > protectedSessionTimeout * 1000) {
resetProtectedSession();
}
}, 5000);