Stop the server and this thread nicely
(self)
| 2513 | self.url = 'http://%s:%d/' % (self.host, self.port) |
| 2514 | |
| 2515 | def stop(self): |
| 2516 | """Stop the server and this thread nicely""" |
| 2517 | self.docserver.quit = True |
| 2518 | self.join() |
| 2519 | # explicitly break a reference cycle: DocServer.callback |
| 2520 | # has indirectly a reference to ServerThread. |
| 2521 | self.docserver = None |
| 2522 | self.serving = False |
| 2523 | self.url = None |
| 2524 | |
| 2525 | thread = ServerThread(urlhandler, hostname, port) |
| 2526 | thread.start() |