From 6045e70ddbd47187d2b9b98280bb67ecf90829cc Mon Sep 17 00:00:00 2001 From: Brian Muller Date: Wed, 30 Aug 2017 20:42:21 -0400 Subject: [PATCH] Fixes #31 - issue in example --- examples/example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()