diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-08-17 16:19:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2021-08-17 16:19:01 +0000 |
commit | b7c626d7b7cffa0afcefa2edec73d6a05645b5b9 (patch) | |
tree | da4b592ab9dcd10b1f0088a999c1970faffe41a0 /usr.bin/tmux | |
parent | 1e08d18da96787a3a5ab9d2f4e5f6627b2fe2e9a (diff) |
Set the right session if detach-on-destroy is off.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r-- | usr.bin/tmux/server-fn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/server-fn.c b/usr.bin/tmux/server-fn.c index f9b51dcf697..525f3613d6a 100644 --- a/usr.bin/tmux/server-fn.c +++ b/usr.bin/tmux/server-fn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-fn.c,v 1.131 2021/08/13 06:52:51 nicm Exp $ */ +/* $OpenBSD: server-fn.c,v 1.132 2021/08/17 16:19:00 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -445,7 +445,7 @@ server_destroy_session(struct session *s) TAILQ_FOREACH(c, &clients, entry) { if (c->session != s) continue; - server_client_set_session(c, NULL); + server_client_set_session(c, s_new); if (s_new == NULL) c->flags |= CLIENT_EXIT; } |