Fix ctrl-c
@@ -57,7 +57,7 @@ def start_server(host, port, policy, accept_proxy_headers=False, logger=None):
app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_port=1, x_prefix=1)
config["policy"] = policy
config["logger"] = logger
- threading.Thread(target=app.run, args=(host, port)).start()
+ threading.Thread(target=app.run, args=(host, port), daemon=True).start()
class ServerStateLogHandler(logging.Handler):
