Stop the server and this thread nicely
(self)
| 2417 | self.url = 'http://%s:%d/' % (self.host, self.port) |
| 2418 | |
| 2419 | def stop(self): |
| 2420 | """Stop the server and this thread nicely""" |
| 2421 | self.docserver.quit = True |
| 2422 | self.join() |
| 2423 | # explicitly break a reference cycle: DocServer.callback |
| 2424 | # has indirectly a reference to ServerThread. |
| 2425 | self.docserver = None |
| 2426 | self.serving = False |
| 2427 | self.url = None |
| 2428 | |
| 2429 | thread = ServerThread(urlhandler, hostname, port) |
| 2430 | thread.start() |