pydoc: close the DocServer when done
This commit is contained in:
parent
2b69506c79
commit
a3abd1d240
|
@ -2112,6 +2112,7 @@ pydoc</strong> by Ka-Ping Yee <ping@lfw.org></font>'''
|
|||
while not self.quit:
|
||||
rd, wr, ex = select.select([self.socket.fileno()], [], [], 1)
|
||||
if rd: self.handle_request()
|
||||
self.server_close()
|
||||
|
||||
def server_activate(self):
|
||||
self.base.server_activate(self)
|
||||
|
@ -2409,6 +2410,7 @@ def _start_server(urlhandler, port):
|
|||
rd, wr, ex = select.select([self.socket.fileno()], [], [], 1)
|
||||
if rd:
|
||||
self.handle_request()
|
||||
self.server_close()
|
||||
|
||||
def server_activate(self):
|
||||
self.base.server_activate(self)
|
||||
|
|
Loading…
Reference in New Issue