Stop the server and this thread nicely
(self)
| 2465 | self.url = 'http://%s:%d/' % (self.host, self.port) |
| 2466 | |
| 2467 | def stop(self): |
| 2468 | """Stop the server and this thread nicely""" |
| 2469 | self.docserver.quit = True |
| 2470 | self.join() |
| 2471 | # explicitly break a reference cycle: DocServer.callback |
| 2472 | # has indirectly a reference to ServerThread. |
| 2473 | self.docserver = None |
| 2474 | self.serving = False |
| 2475 | self.url = None |
| 2476 | |
| 2477 | thread = ServerThread(urlhandler, hostname, port) |
| 2478 | thread.start() |