From bc3b5eecbf119dbd0263c36b2f8ad532ed5da7ed Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 25 Oct 2009 22:00:16 +0000 Subject: Don't try to continue processing a client if the session has been destroyed. --- usr.bin/tmux/server-client.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.bin') 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 @@ -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); + } } /* -- cgit v1.2.3