mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Catch correct errors
This commit is contained in:
parent
036d1949e7
commit
5533a6d310
@ -343,7 +343,7 @@ def empty_and_close_queue(q: mp.Queue):
|
|||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
q.get(block=True, timeout=0.5)
|
q.get(block=True, timeout=0.5)
|
||||||
except queue.Empty:
|
except (queue.Empty, EOFError):
|
||||||
q.close()
|
q.close()
|
||||||
q.join_thread()
|
q.join_thread()
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user