FIXME comment for HTTP server shutdown.

pull/7/head
Ferry Boender 9 years ago
parent 32c612cabe
commit c844d733be
  1. 4
      src/scriptform.py

@ -225,6 +225,10 @@ class ScriptForm:
def shutdown(self):
self.log.info("Attempting server shutdown")
self.log.info(self.websrv)
# FIXME: This is not the cleanest way to exit. shutdown() is called by
# the atexit and signal handler. Ideally, we should call
# self.httpd.shutdown(), but that doesn't work because we're in the
# same thread.
raise SystemExit()
class FormConfig:

Loading…
Cancel
Save