(self)
| 191 | return True |
| 192 | |
| 193 | def stop(self) -> None: |
| 194 | self._running = False |
| 195 | proc = self._proc |
| 196 | if proc and proc.poll() is None: |
| 197 | try: |
| 198 | proc.terminate() |
| 199 | proc.wait(timeout=3) |
| 200 | except Exception: |
| 201 | try: |
| 202 | proc.kill() |
| 203 | except Exception: |
| 204 | pass |
| 205 | |
| 206 | # ------------------------------------------------------------------ # |
| 207 | # Capture |
no test coverage detected