pull/997/head
Louis Vézina 5 years ago
parent a4a5267b9c
commit 1a30974cb7

@ -7,7 +7,7 @@ import os
from get_args import args from get_args import args
from config import base_url from config import base_url
socketio = SocketIO(async_mode='threading') socketio = SocketIO()
def create_app(): def create_app():
@ -42,7 +42,8 @@ def create_app():
return redirect(url_for('series'), code=302) return redirect(url_for('series'), code=302)
return render_template('404.html'), 404 return render_template('404.html'), 404
socketio.init_app(app, path=base_url.rstrip('/')+'/socket.io', cors_allowed_origins='*') socketio.init_app(app, path=base_url.rstrip('/')+'/socket.io', cors_allowed_origins='*', async_mode='threading',
manage_session=False)
return app return app

Loading…
Cancel
Save