summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-02-08 11:32:50 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-02-08 11:32:50 (GMT)
commit3dc3484ac852ce66c7c8260395ead91a8da18020 (patch)
treeee07d6740e95c85a8609f12770a0444fd38c7060 /Lib/asyncore.py
parent204b0006109d12364f608058174a1d352830260f (diff)
downloadcpython-3dc3484ac852ce66c7c8260395ead91a8da18020.zip
cpython-3dc3484ac852ce66c7c8260395ead91a8da18020.tar.gz
cpython-3dc3484ac852ce66c7c8260395ead91a8da18020.tar.bz2
SF bug #892492: Multiple close() for asyncore.dispatcher.
(Contributed by Alexey Klimkin.) Don't keep the file descriptor after the channel is deleted.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index fa70e19..c886f92 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