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)