mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Don't try to upadte window after free.
This commit is contained in:
parent
5cb483680f
commit
7000277f94
5
server.c
5
server.c
@ -1,4 +1,4 @@
|
||||
/* $Id: server.c,v 1.3 2007-08-27 10:24:03 nicm Exp $ */
|
||||
/* $Id: server.c,v 1.4 2007-08-27 11:45:03 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -663,7 +663,8 @@ lost_window(struct window *w)
|
||||
if (session_has(c->session, w)) {
|
||||
if (session_detach(c->session, w) != 0)
|
||||
write_client(c, MSG_EXIT, NULL, 0);
|
||||
changed_window(c);
|
||||
else
|
||||
changed_window(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user