mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-31 13:13:44 +08:00
galaxy: enable threaded mode in Flask to prevent request blocking
This commit is contained in:
@@ -8745,7 +8745,7 @@ def main():
|
||||
print("\"The Galaxy\" is not running on a comma device, enabling debug mode")
|
||||
|
||||
app.secret_key = secrets.token_hex(32)
|
||||
app.run(host=host, port=port, debug=debug, use_reloader=use_reloader)
|
||||
app.run(host=host, port=port, debug=debug, use_reloader=use_reloader, threaded=True)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user