Skip to content

Commit

Permalink
SF bug #892492: Multiple close() for asyncore.dispatcher.
Browse files Browse the repository at this point in the history
(Contributed by Alexey Klimkin.)

Don't keep the file descriptor after the channel is deleted.
  • Loading branch information
rhettinger committed Feb 8, 2004
1 parent 204b000 commit 3dc3484
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/asyncore.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def del_channel(self, map=None):
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
Expand Down

0 comments on commit 3dc3484

Please sign in to comment.