Merge branch 'obsd-master' into master

This commit is contained in:
Thomas Adam 2021-04-05 16:01:23 +01:00
commit db97bef60b

View File

@ -296,6 +296,9 @@ server_client_lost(struct client *c)
TAILQ_REMOVE(&clients, c, entry);
log_debug("lost client %p", c);
if (c->flags & CLIENT_ATTACHED)
notify_client("client-detached", c);
if (c->flags & CLIENT_CONTROL)
control_stop(c);
if (c->flags & CLIENT_TERMINAL)
@ -1766,9 +1769,6 @@ server_client_check_exit(struct client *c)
if (EVBUFFER_LENGTH(cf->buffer) != 0)
return;
}
if (c->flags & CLIENT_ATTACHED)
notify_client("client-detached", c);
c->flags |= CLIENT_EXITED;
switch (c->exit_type) {