just log the close if we're realy going to close.
authorWilfried Goesgens <dothebart@citadel.org>
Tue, 10 May 2011 22:05:46 +0000 (22:05 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Tue, 10 May 2011 22:13:46 +0000 (22:13 +0000)
citadel/context.c

index 63c2d7cab05f7436d81e8577518ea56420b5e92c..a6eee738c4c9df74eedbeab834440994a2bc9ef9 100644 (file)
@@ -361,9 +361,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);
        }