Set the right session if detach-on-destroy is off.

pull/2851/head
nicm 2021-08-17 16:19:00 +00:00
parent de9697b456
commit 4f62aadc93
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ server_destroy_session(struct session *s)
TAILQ_FOREACH(c, &clients, entry) {
if (c->session != s)
continue;
server_client_set_session(c, NULL);
server_client_set_session(c, s_new);
if (s_new == NULL)
c->flags |= CLIENT_EXIT;
}