Add a helper function to send ready message.

This commit is contained in:
Nicholas Marriott
2012-05-22 10:56:48 +00:00
parent 82b053a811
commit 682884edc5
4 changed files with 9 additions and 2 deletions

View File

@ -231,7 +231,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
*/
if (!detached) {
if (ctx->cmdclient != NULL) {
server_write_client(ctx->cmdclient, MSG_READY, NULL, 0);
server_write_ready(ctx->cmdclient);
old_s = ctx->cmdclient->session;
if (old_s != NULL)