tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r559196 - /tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
Date Tue, 24 Jul 2007 20:31:43 GMT
Author: rjung
Date: Tue Jul 24 13:31:42 2007
New Revision: 559196

URL: http://svn.apache.org/viewvc?view=rev&rev=559196
Log:
Fix compiler warning.
We only need to close the socket, if we've got one.

Modified:
    tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c

Modified: tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c
URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c?view=diff&rev=559196&r1=559195&r2=559196
==============================================================================
--- tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c (original)
+++ tomcat/connectors/trunk/jk/native/common/jk_ajp_common.c Tue Jul 24 13:31:42 2007
@@ -740,10 +740,10 @@
             }
         }
         JK_LEAVE_CS(&aw->cs, rc);
+        /* Close previous socket */
+        if (IS_VALID_SOCKET(sock))
+            jk_shutdown_socket(sock);
     }
-    /* Close previous socket */
-    if (IS_VALID_SOCKET(sock))
-        jk_shutdown_socket(sock);
 }
 
 /*



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message