]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
commSetTimeout doesn't really require a handler to be set. Calls
authorhno <>
Sat, 14 May 2005 08:39:40 +0000 (08:39 +0000)
committerhno <>
Sat, 14 May 2005 08:39:40 +0000 (08:39 +0000)
comm_close if there is none.

src/comm.cc

index 74160f838b599a5c03b49c1d2525b9b963755476..1fc8a2916adf8bd5570cdc1b16c34f34224cc02f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.405 2005/05/14 00:51:10 hno Exp $
+ * $Id: comm.cc,v 1.406 2005/05/14 02:39:40 hno Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -1442,8 +1442,6 @@ commSetTimeout(int fd, int timeout, PF * handler, void *data)
         F->timeout_handler = NULL;
         F->timeout = 0;
     } else {
-        assert(handler || F->timeout_handler);
-
         if (handler) {
             cbdataReferenceDone(F->timeout_data);
             F->timeout_handler = handler;