diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-23 01:14:44 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-23 01:14:44 +0100 |
commit | f851742b5fd5da700f1eb954235ed57a51a078bd (patch) | |
tree | 78a6f19c108de9f93a77f35962bb27f3f600cd4a | |
parent | a14dece8f3e9afb3dce4be9657bf4545e4dfd08a (diff) | |
download | trollius-f851742b5fd5da700f1eb954235ed57a51a078bd.tar.gz |
Python issue #23293: Cleanup IocpProactor.close()
The special case for connect_pipe() is not more needed. connect_pipe() doesn't
use overlapped operations anymore.
-rw-r--r-- | asyncio/windows_events.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/asyncio/windows_events.py b/asyncio/windows_events.py index 42c5f6e..6c7e058 100644 --- a/asyncio/windows_events.py +++ b/asyncio/windows_events.py @@ -694,12 +694,7 @@ class IocpProactor: def close(self): # Cancel remaining registered operations. for address, (fut, ov, obj, callback) in list(self._cache.items()): - if obj is None: - # The operation was started with connect_pipe() which - # queues a task to Windows' thread pool. This cannot - # be cancelled, so just forget it. - del self._cache[address] - elif fut.cancelled(): + if fut.cancelled(): # Nothing to do with cancelled futures pass elif isinstance(fut, _WaitCancelFuture): |