Tell the server thread to stop, and wait for it to do so.
(self)
| 972 | super(ControlMixin, self).serve_forever(poll_interval) |
| 973 | |
| 974 | def stop(self): |
| 975 | """ |
| 976 | Tell the server thread to stop, and wait for it to do so. |
| 977 | """ |
| 978 | self.shutdown() |
| 979 | if self._thread is not None: |
| 980 | threading_helper.join_thread(self._thread) |
| 981 | self._thread = None |
| 982 | self.server_close() |
| 983 | self.ready.clear() |
| 984 | |
| 985 | class TestHTTPServer(ControlMixin, HTTPServer): |
| 986 | """ |
no test coverage detected