Continuing development

This commit is contained in:
morpheus65535 2018-12-14 06:52:09 -05:00
parent fd840d86c0
commit 4686e7da55
2 changed files with 15 additions and 7 deletions

View File

@ -1742,13 +1742,15 @@ def handle_websocket():
if not wsock:
abort(400, 'Expected WebSocket request.')
queueconfig.q4ws.empty()
while True:
# try:
while not queueconfig.q4ws.empty():
wsock.send(queueconfig.q4ws.get_nowait())
gevent.sleep(0)
# except WebSocketError:
# break
try:
while not queueconfig.q4ws.empty():
wsock.send(queueconfig.q4ws.get_nowait())
gevent.sleep(0)
except WebSocketError:
break
import warnings
# Mute DeprecationWarning

View File

@ -216,7 +216,13 @@
new Noty({
text: evt.data,
timeout: 3000,
type: 'success',
progressBar: false,
animation: {
open: null,
close: null
},
killer: true,
type: 'success',
layout: 'bottomRight',
theme: 'semanticui'
}).show();