diff options
author | Thomas Adam <thomas@xteddy.org> | 2023-09-01 17:06:27 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2023-09-01 17:06:27 +0100 |
commit | 1aec420465eab1cf6e4666851f950621e006b26d (patch) | |
tree | be86e9bbe9a07d46a047611542581b87b1d5e9ee /session.c | |
parent | d682ef88e6eab4d256adf441d29f8e873ea292da (diff) | |
parent | 9456258ccc03a1a959cfb7d020011d751b39bb1b (diff) |
Merge branch 'obsd-master'
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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. */ |