aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'server.c')
-rw-r--r--server.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/server.c b/server.c
index 5613ddea..073f3f90 100644
--- a/server.c
+++ b/server.c
@@ -294,9 +294,8 @@ server_send_exit(void)
if (c->flags & CLIENT_SUSPENDED)
server_client_lost(c);
else {
- if (c->flags & CLIENT_ATTACHED)
- notify_client("client-detached", c);
- proc_send(c->peer, MSG_SHUTDOWN, -1, NULL, 0);
+ c->flags |= CLIENT_EXIT;
+ c->exit_type = CLIENT_EXIT_SHUTDOWN;
}
c->session = NULL;
}