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:
parent
204b000610
commit
3dc3484ac8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue