summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2023-09-01 17:06:27 +0100
committerThomas Adam <thomas@xteddy.org>2023-09-01 17:06:27 +0100
commit1aec420465eab1cf6e4666851f950621e006b26d (patch)
treebe86e9bbe9a07d46a047611542581b87b1d5e9ee /session.c
parentd682ef88e6eab4d256adf441d29f8e873ea292da (diff)
parent9456258ccc03a1a959cfb7d020011d751b39bb1b (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'session.c')
-rw-r--r--session.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/session.c b/session.c
index 8432b6ae..300ab7c0 100644
--- a/session.c
+++ b/session.c
@@ -365,11 +365,9 @@ session_detach(struct session *s, struct winlink *wl)
session_group_synchronize_from(s);
- if (RB_EMPTY(&s->windows)) {
- session_destroy(s, 1, __func__);
+ if (RB_EMPTY(&s->windows))
return (1);
- }
- return (0);
+ return (0);
}
/* Return if session has window. */