diff --git a/examples/example.py b/examples/example.py index f8f509c..be95613 100644 --- a/examples/example.py +++ b/examples/example.py @@ -26,6 +26,6 @@ try: loop.run_forever() except KeyboardInterrupt: pass - -server.close() -loop.close() +finally: + server.stop() + loop.close()