Skip to content

Commit

Permalink
fix: Initialize localStorage idling value to false in constructor
Browse files Browse the repository at this point in the history
If AutoResume.NotIdle is set, the idling value must be to false in localStorage, otherwise, on
startup, if the value is at true, no interrupt will emit.
  • Loading branch information
gabrielrousseaufilion committed Feb 20, 2017
1 parent e991730 commit ab71433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/core/src/idle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class Idle implements OnDestroy {
private autoResume: AutoResume = AutoResume.idle;
private interrupts: Array<Interrupt> = new Array;
private running: boolean = false;
private idling: boolean = false;
private idling: boolean;
private idleHandle: any;
private timeoutHandle: any;
private countdown: number;
Expand All @@ -56,6 +56,7 @@ export class Idle implements OnDestroy {
this.keepaliveSvc = keepaliveSvc;
this.keepaliveEnabled = true;
}
this.setIdling(false);
}

/*
Expand Down

0 comments on commit ab71433

Please sign in to comment.