X-Git-Url: http://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2FObj%2Fsac-a-push.phh;h=6d754927c487f52151692752d9a0cb987797a100;hp=5f9818a274e891574780a88b13605efd8506e886;hb=e246dc1e59ed187a121f0cae319881f40e1fd426;hpb=1f1dc03f2bfda5d54dba9c25e8e3f9f45a4f1547 diff --git a/web/Obj/sac-a-push.phh b/web/Obj/sac-a-push.phh index 5f9818a..6d75492 100644 --- a/web/Obj/sac-a-push.phh +++ b/web/Obj/sac-a-push.phh @@ -605,7 +605,7 @@ class Sac_a_push { foreach ($this->socks as $k => $sock) { $id = intval($sock); if (isset($this->s2u[$id])) { - if ($this->s2u[$id]->sess == '') { + if ($this->s2u[$id]->the_end) { if ($this->s2u[$id]->rd_socket_get() != NULL) { $this->s2u[$id]->rd_socket_set(NULL); } @@ -616,6 +616,7 @@ class Sac_a_push { } } } + $this->app->users_cleanup(); } function run()