mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-25 09:12:38 +00:00
Fixed SSE.
This commit is contained in:
parent
343eedb8ac
commit
79949ff80f
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue