mirror of
https://github.com/Project-Babble/ProjectBabble.git
synced 2026-12-04 07:42:21 -08:00
clean up comments and log lines to be more correct
This commit is contained in:
1 parent
fd8b0abb12
commit
17b08e35a5
2 files changed
+5
-5
No files matched your search
@@ -448,7 +448,7 @@ class FTCamera:
|
||||
FTCamera._logger.info("FTCamera.read: EXIT")
|
||||
else:
|
||||
def read(self: 'FTCamera') -> None:
|
||||
"""Read next frame."""
|
||||
"""Read frames until requested to exit."""
|
||||
while not self.terminator.terminate_requested:
|
||||
self._filter_graph.grab_frame()
|
||||
time.sleep(0.001)
|
||||
|
||||
@@ -98,20 +98,20 @@ class FTCameraController:
|
||||
"""Stop capturing frames if capturing."""
|
||||
if self._proc_read is None:
|
||||
return
|
||||
FTCameraController._logger.info("FTCameraController._stop_read: Linux: stop process")
|
||||
FTCameraController._logger.info("FTCameraController._stop_read: stop process")
|
||||
self._proc_read.terminate() # sends a SIGTERM
|
||||
self._proc_read.join(1)
|
||||
|
||||
if self._proc_read.exitcode is not None:
|
||||
FTCameraController._logger.info(
|
||||
"FTCameraController.stop_read: Linux: process terminated")
|
||||
"FTCameraController.stop_read: process terminated")
|
||||
else:
|
||||
FTCameraController._logger.info(
|
||||
"FTCameraController._stop_read: Linux: process not responding, killing it")
|
||||
"FTCameraController._stop_read: process not responding, killing it")
|
||||
self._proc_read.kill() # sends a SIGKILL
|
||||
self._proc_read.join(1)
|
||||
FTCameraController._logger.info(
|
||||
"FTCameraController._stop_read: Linux: process killed")
|
||||
"FTCameraController._stop_read: process killed")
|
||||
self._proc_read = None
|
||||
|
||||
def _read_process(self: 'FTCameraController',
|
||||
|
||||
Reference in new issue
Block a user