summaryrefslogtreecommitdiff
path: root/examples/shell.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-07-02 01:26:08 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-07-02 01:26:08 +0200
commitf2d4025a98f18739f58f726842c95893f9ceffac (patch)
tree9542b58f02161b5e19ef8245691e93069fd2937f /examples/shell.py
parent789a98e30ef59d7e1c0d6b3b6f6f2a141dcdaed5 (diff)
downloadtrollius-f2d4025a98f18739f58f726842c95893f9ceffac.tar.gz
Examples: close the event loop at exit
Diffstat (limited to 'examples/shell.py')
-rw-r--r--examples/shell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/shell.py b/examples/shell.py
index 8ae30ca..7dc7caf 100644
--- a/examples/shell.py
+++ b/examples/shell.py
@@ -47,3 +47,4 @@ loop = asyncio.get_event_loop()
loop.run_until_complete(cat(loop))
loop.run_until_complete(ls(loop))
loop.run_until_complete(test_call("bash", "-c", "sleep 3", timeout=1.0))
+loop.close()