aboutsummaryrefslogtreecommitdiff
path: root/server-fn.c
diff options
context:
space:
mode:
Diffstat (limited to 'server-fn.c')
-rw-r--r--server-fn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-fn.c b/server-fn.c
index b4defdd4..a9446bc5 100644
--- a/server-fn.c
+++ b/server-fn.c
@@ -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__);