From: Wilfried Goesgens Date: Tue, 10 May 2011 22:05:46 +0000 (+0000) Subject: just log the close if we're realy going to close. X-Git-Tag: v7.87~21 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;ds=sidebyside;h=fb879f9dd1dda5368880e5d5ee51557b3c4d20b3;p=citadel.git just log the close if we're realy going to close. --- 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); }