aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index b0f7233..21cc727 100644
--- a/main.c
+++ b/main.c
@@ -201,6 +201,11 @@ void *client_loop(void *ign) {
}
}
disconnect_client:
+ if (client_connected) {
+ SEND(STRING(":1HC000001 QUIT :Ping timeout: -240 seconds\n"));
+ client_connected = 0;
+ }
+
close(client_fd);
free(full_msg.data);
listen(client_listen_fd, 1);