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: v8.11~1062 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=6e0842d4f053da85418917d8b34eb8b54f04d964 just log the close if we're realy going to close. --- diff --git a/citadel/context.c b/citadel/context.c index e6547417a..fbb3272de 100644 --- a/citadel/context.c +++ b/citadel/context.c @@ -354,9 +354,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); }