projects
/
brisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8605f6
)
fix ping request and _rd close case
author
Matteo Nastasi
<nastasi@alternativeoutput.it>
Tue, 31 Mar 2020 11:06:56 +0000
(13:06 +0200)
committer
Matteo Nastasi
<nastasi@alternativeoutput.it>
Tue, 31 Mar 2020 11:06:56 +0000
(13:06 +0200)
web/Obj/brisk.phh
patch
|
blob
|
history
diff --git
a/web/Obj/brisk.phh
b/web/Obj/brisk.phh
index
9c20af1
..
aa3ed2c
100644
(file)
--- a/
web/Obj/brisk.phh
+++ b/
web/Obj/brisk.phh
@@
-1373,7
+1373,7
@@
class Brisk
if ($user_cur->is_active() == FALSE)
continue;
- if ($user_cur->lacc +
EXPIRE_TIME_RD
< ($curtime - $delta)) {
+ if ($user_cur->lacc +
(($user_cur->ping_req ? 2 : 1) * EXPIRE_TIME_RD)
< ($curtime - $delta)) {
// Auto logout dell'utente
log_rd2("AUTO LOGOUT.".($user_cur->lacc + EXPIRE_TIME_RD)." curtime - delta ".($curtime - $delta));