diff options
author | Thomas Adam <thomas@xteddy.org> | 2013-10-15 08:06:56 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2013-10-15 08:06:56 +0100 |
commit | 2c08a3a55922651b2d5100ba5778cce74da906b2 (patch) | |
tree | a49a5afe5d649c9b9d883e32cecfc9c9dc45b945 | |
parent | 334c28afe71eabb236bf8cfdfc18f56d99719711 (diff) | |
parent | 2eb6d6e31bdd2270e242d234006e7c83e0d12255 (diff) | |
download | rtmux-2c08a3a55922651b2d5100ba5778cce74da906b2.tar.gz rtmux-2c08a3a55922651b2d5100ba5778cce74da906b2.tar.bz2 rtmux-2c08a3a55922651b2d5100ba5778cce74da906b2.zip |
Merge branch 'obsd-master'
-rw-r--r-- | cmd-detach-client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-detach-client.c b/cmd-detach-client.c index f0867364..fe4b2397 100644 --- a/cmd-detach-client.c +++ b/cmd-detach-client.c @@ -71,7 +71,8 @@ cmd_detach_client_exec(struct cmd *self, struct cmd_q *cmdq) if (args_has(args, 'a')) { for (i = 0; i < ARRAY_LENGTH(&clients); i++) { c2 = ARRAY_ITEM(&clients, i); - if (c2 == NULL || c == c2) + if (c2 == NULL || c2->session == NULL || + c2 == c) continue; server_write_client(c2, msgtype, c2->session->name, |