소스 검색

maint: Flask backend enable app threaded

wangweimin 4 년 전
부모
커밋
4585290572
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pywebio/platform/flask.py

+ 1 - 1
pywebio/platform/flask.py

@@ -146,4 +146,4 @@ def start_server(applications, port=8080, host='localhost', cdn=True, static_dir
     if not debug:
     if not debug:
         logging.getLogger('werkzeug').setLevel(logging.WARNING)
         logging.getLogger('werkzeug').setLevel(logging.WARNING)
 
 
-    app.run(host=host, port=port, debug=debug, **flask_options)
+    app.run(host=host, port=port, debug=debug, threaded=True, **flask_options)