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; }