diff options
author | nicm <nicm> | 2021-09-17 07:20:49 +0000 |
---|---|---|
committer | nicm <nicm> | 2021-09-17 07:20:49 +0000 |
commit | c4b969ca62a6f0b66f97c9bfe88022a91d162038 (patch) | |
tree | 2ca7cb43f78eba04c18c0b2a7424f027f2349aeb | |
parent | 3c3d371f996b71380547a56db4412c8ca8a31469 (diff) | |
download | rtmux-c4b969ca62a6f0b66f97c9bfe88022a91d162038.tar.gz rtmux-c4b969ca62a6f0b66f97c9bfe88022a91d162038.tar.bz2 rtmux-c4b969ca62a6f0b66f97c9bfe88022a91d162038.zip |
Do not destroy sessions twice, GitHub issue 2889.
-rw-r--r-- | session.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -205,6 +205,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); |