summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-10-25 22:00:16 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-10-25 22:00:16 +0000
commitbc3b5eecbf119dbd0263c36b2f8ad532ed5da7ed (patch)
tree4532ef16e00b7d2f189ecf3558271576f548aa83
parent6e9b0da897ea2771c587c0f58d4f5361bf89d7f6 (diff)
Don't try to continue processing a client if the session has been destroyed.
-rw-r--r--usr.bin/tmux/server-client.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c
index 451b5f81e3d..3560db68f2c 100644
--- a/usr.bin/tmux/server-client.c
+++ b/usr.bin/tmux/server-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server-client.c,v 1.5 2009/10/25 21:11:21 nicm Exp $ */
+/* $OpenBSD: server-client.c,v 1.6 2009/10/25 22:00:15 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -199,9 +199,10 @@ server_client_loop(void)
continue;
server_client_handle_data(c);
-
- server_client_check_timers(c);
- server_client_check_redraw(c);
+ if (c->session != NULL) {
+ server_client_check_timers(c);
+ server_client_check_redraw(c);
+ }
}
/*