Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idle config value ignored (always set to 60 minutes) #137

Open
mpscheidt opened this issue Jun 20, 2022 · 1 comment
Open

Idle config value ignored (always set to 60 minutes) #137

mpscheidt opened this issue Jun 20, 2022 · 1 comment

Comments

@mpscheidt
Copy link

mpscheidt commented Jun 20, 2022

In the current latest version 3.0.0 the config value for idle seems to be ignored. Instead of the configured value, the idle value is always 3600 seconds minus the timeout value.

For example, given the following:

UserIdleModule.forRoot({ idle: 7777, timeout: 333, ping: 0 }),

results in idle being set to 3600 - 333 = 3267 when being queried by this.userIdle.getConfigValue();:

this.userIdle.getConfigValue();
{idle: 3267, idleSensitivity: 1, timeout: 333, ping: 120}

Another example: given

UserIdleModule.forRoot({ idle: 300, timeout: 222, ping: 0 }),

results in:

this.userIdle.getConfigValue();
{idle: 3378, idleSensitivity: 1, timeout: 222, ping: 120}

Again, the idle value is 3600 minus the timeout value: 3378.

So the configured idle value given in UserIdleModule.forRoot(..) is ignored.

@JoeKyy
Copy link

JoeKyy commented Jul 15, 2022

image

Same error here, and that is my debug on the application running :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants