Run flask as multi threaded (#7648)

This commit is contained in:
Nicolas Mowen 2023-09-02 04:41:46 -06:00 committed by GitHub
parent 3c25c578f0
commit 36434bb26d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -625,7 +625,7 @@ class FrigateApp:
signal.signal(signal.SIGTERM, receiveSignal) signal.signal(signal.SIGTERM, receiveSignal)
try: try:
self.flask_app.run(host="127.0.0.1", port=5001, debug=False) self.flask_app.run(host="127.0.0.1", port=5001, debug=False, threaded=True)
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass