From 4686e7da553d99ceb442775cfadbfb95da5a980f Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Fri, 14 Dec 2018 06:52:09 -0500 Subject: [PATCH] Continuing development --- bazarr/main.py | 14 ++++++++------ views/menu.tpl | 8 +++++++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/bazarr/main.py b/bazarr/main.py index fc0e8320f..965f4eed3 100644 --- a/bazarr/main.py +++ b/bazarr/main.py @@ -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 diff --git a/views/menu.tpl b/views/menu.tpl index 6be6f2baa..e3e81ad38 100644 --- a/views/menu.tpl +++ b/views/menu.tpl @@ -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();