Skip to content
Commit 9eff0e58 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Ignore "session_lifetime" if it can not be converted to a number



When "session_lifetime" can not be converted to a number the interval
becomes a NaN due to dividing it by 2. This NaN was "dragged" over all
the other mathematical operations and caused the heartbeat to be post
again and again due to an infinite loop with no pauses in "setInterval".
Now, the interval is set to the default value instead if the
"session_lifetime" can not be converted to a number.

Signed-off-by: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 078c1088
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment