mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-18 01:20:17 +02:00
session_flush can go bye-bye again.
This commit is contained in:
9
server.c
9
server.c
@@ -1,4 +1,4 @@
|
||||
/* $Id: server.c,v 1.7 2007-08-27 15:28:07 nicm Exp $ */
|
||||
/* $Id: server.c,v 1.8 2007-08-27 20:36:52 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@@ -667,11 +667,8 @@ lost_window(struct window *w)
|
||||
if (!session_has(s, w))
|
||||
continue;
|
||||
|
||||
/* Detach window from session. */
|
||||
session_detach(s, w);
|
||||
|
||||
/* Try to flush session and either redraw or kill clients. */
|
||||
destroyed = session_flush(s);
|
||||
/* Detach window and either redraw or kill clients. */
|
||||
destroyed = session_detach(s, w);
|
||||
for (j = 0; j < ARRAY_LENGTH(&clients); j++) {
|
||||
c = ARRAY_ITEM(&clients, j);
|
||||
if (c == NULL || c->session != s)
|
||||
|
Reference in New Issue
Block a user