(self)
| 415 | |
| 416 | # Stop Video Server |
| 417 | def stop(self): |
| 418 | self._disableStream() |
| 419 | if (self.mode == MODE_Output) and (self.filename == ""): |
| 420 | try: |
| 421 | cv2.destroyAllWindows() |
| 422 | except Exception: |
| 423 | pass |
| 424 | self.listener.close() |
| 425 | logger.info("Video server stopped") |
| 426 | |
| 427 | |
| 428 | # Validate IP address |
no test coverage detected