aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2015-09-23 00:01:09 +0100
committerThomas Adam <thomas@xteddy.org>2015-09-23 00:01:09 +0100
commit7e9b87f396e117828c0db9dd53f4b01a82f35640 (patch)
tree0a047f2745733a8b4435553ab5bd454422d25780
parentd6d05883adb414cc3c615ef65aebc323b3b37eef (diff)
parentdc66795e353e1d84c23cb87f4120480a152b43d9 (diff)
downloadrtmux-7e9b87f396e117828c0db9dd53f4b01a82f35640.tar.gz
rtmux-7e9b87f396e117828c0db9dd53f4b01a82f35640.tar.bz2
rtmux-7e9b87f396e117828c0db9dd53f4b01a82f35640.zip
Merge branch 'obsd-master'
-rw-r--r--cmd-switch-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-switch-client.c b/cmd-switch-client.c
index 10171018..3a72886a 100644
--- a/cmd-switch-client.c
+++ b/cmd-switch-client.c
@@ -124,7 +124,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmd_q *cmdq)
environ_update(update, &c->environ, &s->environ);
}
- if (c->session != NULL)
+ if (c->session != NULL && c->session != s)
c->last_session = c->session;
c->session = s;
status_timer_start(c);