]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bugzilla #369: Don't attempt to close the WCCP socket twice on shutdown /
authorhno <>
Fri, 21 Jun 2002 19:16:30 +0000 (19:16 +0000)
committerhno <>
Fri, 21 Jun 2002 19:16:30 +0000 (19:16 +0000)
reconfigure.

src/wccp.cc

index 5f1a805beb27f83f5c4a53d974c4d7f4a434ea1f..1aeb292264c4a4f859fccf6e998ef5a0df168c49 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: wccp.cc,v 1.22 2002/04/18 16:08:21 hno Exp $
+ * $Id: wccp.cc,v 1.23 2002/06/21 13:16:30 hno Exp $
  *
  * DEBUG: section 80    WCCP Support
  * AUTHOR: Glenn Chisholm
@@ -181,6 +181,7 @@ wccpConnectionShutdown(void)
     if (theInWccpConnection != theOutWccpConnection) {
        debug(80, 1) ("FD %d Closing WCCP socket\n", theInWccpConnection);
        comm_close(theInWccpConnection);
+       theInWccpConnection = -1;
     }
     assert(theOutWccpConnection > -1);
     commSetSelect(theOutWccpConnection, COMM_SELECT_READ, NULL, NULL, 0);