Detach the right session with -d.

pull/243/merge
nicm 2015-12-21 09:20:13 +00:00
parent bdbec099cc
commit f2ec911b8a
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ cmd_attach_session(struct cmd_q *cmdq, int dflag, int rflag, const char *cflag,
TAILQ_FOREACH(c_loop, &clients, entry) {
if (c_loop->session != s || c == c_loop)
continue;
server_client_detach(c, MSG_DETACH);
server_client_detach(c_loop, MSG_DETACH);
}
}