From 420f2ac806e4416e2d70817328ea3155067c176c Mon Sep 17 00:00:00 2001 From: adrian <> Date: Wed, 23 Oct 2002 16:11:53 +0000 Subject: [PATCH] when cancelling read events, also cancel the actual FD listen bit. (ta reub!) --- src/comm.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/comm.cc b/src/comm.cc index c0bad1859a..719b88bfb6 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.350 2002/10/23 10:11:03 adrian Exp $ + * $Id: comm.cc,v 1.351 2002/10/23 10:11:53 adrian Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -581,6 +581,9 @@ comm_read_cancel(int fd, IOCB *callback, void *data) /* Delete the callback */ fdc_table[fd].read.handler = NULL; fdc_table[fd].read.handler_data = NULL; + + /* And the IO event */ + commSetSelect(fd, COMM_SELECT_READ, NULL, NULL, 0); } -- 2.47.2