Stop the thread by closing the server instance. Wait for the server thread to terminate.
(self)
| 934 | asyncore.loop(poll_interval, map=self._map, count=1) |
| 935 | |
| 936 | def stop(self): |
| 937 | """ |
| 938 | Stop the thread by closing the server instance. |
| 939 | Wait for the server thread to terminate. |
| 940 | """ |
| 941 | self._quit = True |
| 942 | threading_helper.join_thread(self._thread) |
| 943 | self._thread = None |
| 944 | self.close() |
| 945 | asyncore.close_all(map=self._map, ignore_all=True) |
| 946 | |
| 947 | |
| 948 | class ControlMixin(object): |
no test coverage detected