set daemon=False

This commit is contained in:
duyalei 2019-07-14 13:17:41 +08:00
parent 0169f73f35
commit d84b85b515

View File

@ -276,7 +276,7 @@ def serve_files_in_background(interface, port, directory_to_serve=None):
# except (KeyboardInterrupt, OSError):
# httpd.server_close()
thread = threading.Thread(target=serve_forever, daemon=True)
thread = threading.Thread(target=serve_forever, daemon=False)
thread.start()
return httpd