Kaydet (Commit) 3dc3484a authored tarafından Raymond Hettinger's avatar Raymond Hettinger

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

(Contributed by Alexey Klimkin.)

Don't keep the file descriptor after the channel is deleted.
üst 204b0006
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment