From fb879f9dd1dda5368880e5d5ee51557b3c4d20b3 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Tue, 10 May 2011 22:05:46 +0000 Subject: [PATCH] just log the close if we're realy going to close. --- citadel/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citadel/context.c b/citadel/context.c index c2d739924..dde1c3be9 100644 --- a/citadel/context.c +++ b/citadel/context.c @@ -335,9 +335,9 @@ void RemoveContext (CitContext *con) * If the client is still connected, blow 'em away. * if the socket is 0, its already gone or was never there. */ - CtdlLogPrintf(CTDL_DEBUG, "Closing socket %d\n", con->client_socket); if (con->client_socket != 0) { + CtdlLogPrintf(CTDL_DEBUG, "Closing socket %d\n", con->client_socket); close(con->client_socket); } -- 2.30.2