mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-23 06:41:41 +00:00
Fixed socketio slow emits
This commit is contained in:
parent
4e003c5698
commit
eb61c6f355
|
@ -71,6 +71,7 @@ class SocketInterface(MessageInterface):
|
||||||
socketio.emit(message, value)
|
socketio.emit(message, value)
|
||||||
else:
|
else:
|
||||||
socketio.emit(message)
|
socketio.emit(message)
|
||||||
|
socketio.sleep(0)
|
||||||
|
|
||||||
|
|
||||||
socket_interface = SocketInterface()
|
socket_interface = SocketInterface()
|
||||||
|
@ -131,7 +132,7 @@ def shutdown(interface=None):
|
||||||
|
|
||||||
def shutdown_handler(signalnum, frame):
|
def shutdown_handler(signalnum, frame):
|
||||||
shutdown()
|
shutdown()
|
||||||
|
|
||||||
@server.route('/')
|
@server.route('/')
|
||||||
def landing():
|
def landing():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
Loading…
Reference in a new issue