From 844eba0386f4f4b45865ca70a35fb7a577d7e32f Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Wed, 14 Dec 2022 19:40:58 +0100 Subject: [PATCH] disable multithreading --- src/mastodon_toot_follower/server/flask_server.py | 2 +- src/mastodon_toot_follower/server/waitress_server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mastodon_toot_follower/server/flask_server.py b/src/mastodon_toot_follower/server/flask_server.py index 5aac389..2416368 100644 --- a/src/mastodon_toot_follower/server/flask_server.py +++ b/src/mastodon_toot_follower/server/flask_server.py @@ -70,4 +70,4 @@ def json(seed: str): if __name__ == '__main__': - app.run(host='0.0.0.0', port=5000) + app.run(host='0.0.0.0', port=5000, threaded=False) diff --git a/src/mastodon_toot_follower/server/waitress_server.py b/src/mastodon_toot_follower/server/waitress_server.py index dca2f4c..7bc841a 100755 --- a/src/mastodon_toot_follower/server/waitress_server.py +++ b/src/mastodon_toot_follower/server/waitress_server.py @@ -5,4 +5,4 @@ from waitress import serve import flask_server if __name__ == '__main__': - serve(flask_server.app, host='0.0.0.0', port=5000) + serve(flask_server.app, host='0.0.0.0', port=5000, threads=1)