diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-23 01:02:37 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-23 01:02:37 +0200 |
commit | f328c7dc69da14766435d8608f89d81cd878bb4d (patch) | |
tree | e28c9941def58676945ff046468695a6f0a25561 /Lib/asyncio/unix_events.py | |
parent | 62511fd6d62ef53c1d3d050b478750efc5a7014c (diff) | |
download | cpython-git-f328c7dc69da14766435d8608f89d81cd878bb4d.tar.gz |
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/unix_events.py')
-rw-r--r-- | Lib/asyncio/unix_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index acb327d998..ad4c229438 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -44,9 +44,9 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop): return socket.socketpair() def close(self): + super().close() for sig in list(self._signal_handlers): self.remove_signal_handler(sig) - super().close() def add_signal_handler(self, sig, callback, *args): """Add a handler for a signal. UNIX only. |