From e99f0115d66fe95c1e9dde0f87f6d41716815950 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 1 Feb 2025 19:23:24 +0100 Subject: [PATCH] disconnecting user on ca auth end --- src/chat/misc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chat/misc.c b/src/chat/misc.c index 884163c..821b13e 100644 --- a/src/chat/misc.c +++ b/src/chat/misc.c @@ -936,6 +936,7 @@ void *why2_authority_communicate_thread(void *arg) //DEALLOCATION why2_deallocate(path); why2_deallocate(cert); + exiting = 1; } } else exiting = 1; @@ -947,6 +948,8 @@ void *why2_authority_communicate_thread(void *arg) why2_deallocate(code); } while (!exiting); + printf("User disconnected.\t%d\n", connection); + return NULL; }