From: Matteo Nastasi Date: Tue, 31 Mar 2020 11:06:56 +0000 (+0200) Subject: fix ping request and _rd close case X-Git-Tag: v5.8.0~11 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=2a134b612ddcdd7d04cb6fbcce0c0db1cfec6950;p=brisk.git fix ping request and _rd close case --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 9c20af1..aa3ed2c 100644 --- 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));