Commit 3333c4a7 authored by Guido van Rossum's avatar Guido van Rossum

Close resources owned by subclass before calling super().close().

parent 4d70e6b1
......@@ -351,8 +351,8 @@ if hasattr(select, 'epoll'):
return ready
def close(self):
super().close()
self._epoll.close()
super().close()
if hasattr(select, 'kqueue'):
......@@ -414,8 +414,8 @@ if hasattr(select, 'kqueue'):
return ready
def close(self):
super().close()
self._kqueue.close()
super().close()
# Choose the best implementation: roughly, epoll|kqueue > poll > select.
......
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