diff options
Diffstat (limited to 'server-msg.c')
-rw-r--r-- | server-msg.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server-msg.c b/server-msg.c index ec085610..248b94d4 100644 --- a/server-msg.c +++ b/server-msg.c @@ -105,7 +105,8 @@ server_msg_dispatch(struct client *c) tty_start_tty(&c->tty); server_redraw_client(c); recalculate_sizes(); - server_activity = time(NULL); + if (c->session != NULL) + c->session->activity = time(NULL); break; case MSG_ENVIRON: if (datalen != sizeof environdata) @@ -181,7 +182,8 @@ server_msg_command(struct client *c, struct msg_command_data *data) int argc; char **argv, *cause; - server_activity = time(NULL); + if (c->session != NULL) + c->session->activity = time(NULL); ctx.error = server_msg_command_error; ctx.print = server_msg_command_print; |