Stop the renewal thread.
(self)
| 373 | return self |
| 374 | |
| 375 | def stop(self): |
| 376 | """Stop the renewal thread.""" |
| 377 | self._stop_event.set() |
| 378 | if self._thread and self._thread.is_alive(): |
| 379 | self._thread.join(timeout=5) |
| 380 | self._thread = None |
| 381 | |
| 382 | def __enter__(self): |
| 383 | self.start() |
no test coverage detected