diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-22 23:02:37 (GMT) |
|---|---|---|
| committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-22 23:02:37 (GMT) |
| commit | f328c7dc69da14766435d8608f89d81cd878bb4d (patch) | |
| tree | e28c9941def58676945ff046468695a6f0a25561 /Lib/asyncio/selector_events.py | |
| parent | 62511fd6d62ef53c1d3d050b478750efc5a7014c (diff) | |
| download | cpython-f328c7dc69da14766435d8608f89d81cd878bb4d.zip cpython-f328c7dc69da14766435d8608f89d81cd878bb4d.tar.gz cpython-f328c7dc69da14766435d8608f89d81cd878bb4d.tar.bz2 | |
asyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if the
event loop is running. You must first stop the event loop and then wait until
it stopped, before closing it.
Diffstat (limited to 'Lib/asyncio/selector_events.py')
| -rw-r--r-- | Lib/asyncio/selector_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index a62a8e5..df64aec 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -57,11 +57,11 @@ class BaseSelectorEventLoop(base_events.BaseEventLoop): def close(self): if self.is_closed(): return + super().close() self._close_self_pipe() if self._selector is not None: self._selector.close() self._selector = None - super().close() def _socketpair(self): raise NotImplementedError |
