mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-19 17:55:48 +02:00
Don't try to upadte window after free.
This commit is contained in:
3
server.c
3
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>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@@ -663,6 +663,7 @@ lost_window(struct window *w)
|
|||||||
if (session_has(c->session, w)) {
|
if (session_has(c->session, w)) {
|
||||||
if (session_detach(c->session, w) != 0)
|
if (session_detach(c->session, w) != 0)
|
||||||
write_client(c, MSG_EXIT, NULL, 0);
|
write_client(c, MSG_EXIT, NULL, 0);
|
||||||
|
else
|
||||||
changed_window(c);
|
changed_window(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user