mirror of https://github.com/morpheus65535/bazarr
Continuing development
This commit is contained in:
parent
fd840d86c0
commit
4686e7da55
|
@ -1742,13 +1742,15 @@ def handle_websocket():
|
|||
if not wsock:
|
||||
abort(400, 'Expected WebSocket request.')
|
||||
|
||||
queueconfig.q4ws.empty()
|
||||
|
||||
while True:
|
||||
# try:
|
||||
try:
|
||||
while not queueconfig.q4ws.empty():
|
||||
wsock.send(queueconfig.q4ws.get_nowait())
|
||||
gevent.sleep(0)
|
||||
# except WebSocketError:
|
||||
# break
|
||||
except WebSocketError:
|
||||
break
|
||||
|
||||
import warnings
|
||||
# Mute DeprecationWarning
|
||||
|
|
|
@ -216,6 +216,12 @@
|
|||
new Noty({
|
||||
text: evt.data,
|
||||
timeout: 3000,
|
||||
progressBar: false,
|
||||
animation: {
|
||||
open: null,
|
||||
close: null
|
||||
},
|
||||
killer: true,
|
||||
type: 'success',
|
||||
layout: 'bottomRight',
|
||||
theme: 'semanticui'
|
||||
|
|
Loading…
Reference in New Issue