fix: correctly start and stop autolock timer

This commit is contained in:
Baptiste Grob
2020-09-18 12:17:14 +02:00
parent b97f7c686d
commit c705b5b4db
5 changed files with 5 additions and 4 deletions

View File

@@ -271,6 +271,7 @@ export class PasscodeManager {
};
this.lockAfterDate = addToNow(interval / MillisecondsPerSecond);
clearTimeout(this.lockTimeout);
this.lockTimeout = setTimeout(() => {
this.lockApplication();
// We don't need to look at this anymore since we've succeeded with timeout lock