From 393a5b7bde7ecb16731f4d2204ea494993a7514e Mon Sep 17 00:00:00 2001 From: Abhishek Thakur Date: Mon, 26 Nov 2018 18:36:22 +0530 Subject: [PATCH] Fix: Imutils freezes if file end reaches(Bug) --- imutils/video/filevideostream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imutils/video/filevideostream.py b/imutils/video/filevideostream.py index 84faeef..c0c4906 100644 --- a/imutils/video/filevideostream.py +++ b/imutils/video/filevideostream.py @@ -39,7 +39,7 @@ def update(self): # if the thread indicator variable is set, stop the # thread if self.stopped: - break + self.stopped = True # otherwise, ensure the queue has room in it if not self.Q.full():