SF bug #892492: Multiple close() for asyncore.dispatcher.

(Contributed by Alexey Klimkin.)

Don't keep the file descriptor after the channel is deleted.
This commit is contained in:
Raymond Hettinger 2004-02-08 11:32:50 +00:00
parent 204b000610
commit 3dc3484ac8
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ class dispatcher:
if map.has_key(fd): if map.has_key(fd):
#self.log_info('closing channel %d:%s' % (fd, self)) #self.log_info('closing channel %d:%s' % (fd, self))
del map[fd] del map[fd]
self._fileno = None
def create_socket(self, family, type): def create_socket(self, family, type):
self.family_and_type = family, type self.family_and_type = family, type