Tell the server thread to stop, and wait for it to do so.
(self)
| 985 | super(ControlMixin, self).serve_forever(poll_interval) |
| 986 | |
| 987 | def stop(self): |
| 988 | """ |
| 989 | Tell the server thread to stop, and wait for it to do so. |
| 990 | """ |
| 991 | self.shutdown() |
| 992 | if self._thread is not None: |
| 993 | threading_helper.join_thread(self._thread) |
| 994 | self._thread = None |
| 995 | self.server_close() |
| 996 | self.ready.clear() |
| 997 | |
| 998 | class TestHTTPServer(ControlMixin, HTTPServer): |
| 999 | """ |
no test coverage detected