Merge branch 'obsd-master' into master

pull/2899/head
Thomas Adam 2021-09-17 10:01:10 +01:00
commit 25df71b90d
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ session_destroy(struct session *s, int notify, const char *from)
struct winlink *wl;
log_debug("session %s destroyed (%s)", s->name, from);
if (s->curw == NULL)
return;
s->curw = NULL;
RB_REMOVE(sessions, &sessions, s);