Correctly clear clients referring to a session with destroy-unattached,

GitHub issue 5497 from Jeong, Heon.
This commit is contained in:
nicm
2026-08-18 07:32:09 +00:00
committed by tmux update bot
parent 6238793ad7
commit 72c5037f06

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: server-fn.c,v 1.149 2026/07/27 14:25:46 nicm Exp $ */
/* $OpenBSD: server-fn.c,v 1.150 2026/08/18 07:32:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -548,6 +548,7 @@ server_check_unattached(void)
continue;
break;
}
server_destroy_session(s);
session_destroy(s, 1, __func__);
}
}