From: Raymond Hettinger Date: Sun, 8 Feb 2004 11:32:50 +0000 (+0000) Subject: SF bug #892492: Multiple close() for asyncore.dispatcher. X-Git-Tag: v2.4a1~851 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3dc3484ac852ce66c7c8260395ead91a8da18020;p=thirdparty%2FPython%2Fcpython.git SF bug #892492: Multiple close() for asyncore.dispatcher. (Contributed by Alexey Klimkin.) Don't keep the file descriptor after the channel is deleted. --- diff --git a/Lib/asyncore.py b/Lib/asyncore.py index fa70e19a05d8..c886f9288bcf 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py @@ -222,6 +222,7 @@ class dispatcher: if map.has_key(fd): #self.log_info('closing channel %d:%s' % (fd, self)) del map[fd] + self._fileno = None def create_socket(self, family, type): self.family_and_type = family, type