Parcourir la source

now shutting down the server properly

digital il y a 7 ans
Parent
commit
8fa53d5620
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      server.py

+ 1 - 0
server.py

@@ -137,6 +137,7 @@ except KeyboardInterrupt:
     print("\r    ", end="\r")
     logging.warn("KeyboardInterrupt! aborting!")
 finally:
+    bee_server.shutdown()
     sig_exit.send()
     log.info("have a good time :)")
     pass