mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Set the right session if detach-on-destroy is off.
This commit is contained in:
parent
de9697b456
commit
4f62aadc93
@ -445,7 +445,7 @@ server_destroy_session(struct session *s)
|
|||||||
TAILQ_FOREACH(c, &clients, entry) {
|
TAILQ_FOREACH(c, &clients, entry) {
|
||||||
if (c->session != s)
|
if (c->session != s)
|
||||||
continue;
|
continue;
|
||||||
server_client_set_session(c, NULL);
|
server_client_set_session(c, s_new);
|
||||||
if (s_new == NULL)
|
if (s_new == NULL)
|
||||||
c->flags |= CLIENT_EXIT;
|
c->flags |= CLIENT_EXIT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user