From: hno <> Date: Fri, 21 Jun 2002 19:16:30 +0000 (+0000) Subject: Bugzilla #369: Don't attempt to close the WCCP socket twice on shutdown / X-Git-Tag: SQUID_3_0_PRE1~962 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f333fe5fda48805d7449b91acd10f8972ac039f;p=thirdparty%2Fsquid.git Bugzilla #369: Don't attempt to close the WCCP socket twice on shutdown / reconfigure. --- diff --git a/src/wccp.cc b/src/wccp.cc index 5f1a805beb..1aeb292264 100644 --- a/src/wccp.cc +++ b/src/wccp.cc @@ -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);