From acb5aef266283d2a748aee71134837c70675bc10 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Thu, 4 Oct 2012 10:06:03 +0200 Subject: [PATCH] forced lurker logout fixed (not the cleanup) --- web/Obj/sac-a-push.phh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/Obj/sac-a-push.phh b/web/Obj/sac-a-push.phh index 54929fa..c9220a1 100644 --- a/web/Obj/sac-a-push.phh +++ b/web/Obj/sac-a-push.phh @@ -421,9 +421,10 @@ class Sac_a_push { $content = ""; $user->stream_main($content, $get, $post, $cookie); printf("[%s] [%d] [%d]\n", $user->name, $user->lacc, $this->curtime); - if ($content == "" && $user->ping_req == FALSE + if (/* $content == "" && */ $user->ping_req == FALSE && (($this->curtime - $user->lacc) > (EXPIRE_TIME_RD / 2))) { - $content = $user->stream_keepalive(TRUE); + // $content = $user->stream_keepalive(TRUE); + $content += $user->stream_keepalive(TRUE); $user->ping_req = TRUE; } if ($content == "" && $user->rd_kalive_is_expired($this->curtime)) { -- 2.17.1