Skip to content

Commit

Permalink
Merge pull request #708 from ongtw/main
Browse files Browse the repository at this point in the history
bug fix: VideoThread.__del__ crashes on python 3.7
  • Loading branch information
liyier90 authored Sep 27, 2022
2 parents 26d5f96 + dd6d21c commit 4812c99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peekingduck/pipeline/nodes/input/utils/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def __del__(self) -> None:
"""
Release acquired resources here.
"""
self.logger.debug("VideoThread.__del__")
# Note: self.logger is 'None' on python 3.7 but works on python 3.8+
# self.logger.debug("VideoThread.__del__")
self.stream.release()

def shutdown(self) -> None:
Expand Down

0 comments on commit 4812c99

Please sign in to comment.