SESSION_UNATTACHED flag is no longer necessary now we have an attached

count instead.
This commit is contained in:
nicm
2018-08-18 20:08:52 +00:00
parent 3bc08b0dc0
commit bd2896b65e
7 changed files with 13 additions and 21 deletions

View File

@ -430,7 +430,7 @@ server_check_unattached(void)
* set, collect them.
*/
RB_FOREACH(s, sessions, &sessions) {
if (!(s->flags & SESSION_UNATTACHED))
if (s->attached != 0)
continue;
if (options_get_number (s->options, "destroy-unattached"))
session_destroy(s, __func__);