From 79949ff80fdd716a3809fc2041118b1758d3e9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 24 Dec 2019 11:26:14 -0500 Subject: [PATCH] Fixed SSE. --- bazarr/SSE.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/SSE.py b/bazarr/SSE.py index 1ce3665a1..4f98674bc 100644 --- a/bazarr/SSE.py +++ b/bazarr/SSE.py @@ -27,8 +27,8 @@ class EventStream: """ while True: - if self.queue or (len(self.queue) > 0): - yield self.queue.popleft() + if self.queue: + return self.queue.popleft() time.sleep(0.1)