mirror of
https://github.com/tmux/tmux.git
synced 2026-10-16 08:24:23 +00:00
Do not discard control state before a control client creates it, GitHub
issue 5740 from Andre Popp.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: server-client.c,v 1.520 2026/10/12 10:48:05 nicm Exp $ */
|
||||
/* $OpenBSD: server-client.c,v 1.521 2026/10/15 07:48:05 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -2279,7 +2279,7 @@ server_client_check_exit(struct client *c, int force)
|
||||
if (~c->flags & CLIENT_EXIT)
|
||||
return;
|
||||
|
||||
if (c->flags & CLIENT_CONTROL) {
|
||||
if ((c->flags & CLIENT_CONTROL) && c->control_state != NULL) {
|
||||
if (force)
|
||||
control_discard_all(c);
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user