mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 13:51:33 +00:00
Make Terminado stoppable
This commit is contained in:
parent
71f05fe92c
commit
de6afdc84a
@ -45,6 +45,9 @@ class TerminadoMiniServer:
|
|||||||
def listen(self):
|
def listen(self):
|
||||||
self.application.listen(self.port)
|
self.application.listen(self.port)
|
||||||
|
|
||||||
|
def stop(self):
|
||||||
|
self.term_manager.shutdown()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
LOG.info('Terminado Mini Server listening on %s', TFWENV.TERMINADO_PORT)
|
LOG.info('Terminado Mini Server listening on %s', TFWENV.TERMINADO_PORT)
|
||||||
|
@ -83,5 +83,6 @@ class TerminalEventHandler(EventHandlerBase):
|
|||||||
return data
|
return data
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
|
self.terminado_server.stop()
|
||||||
if self.historymonitor:
|
if self.historymonitor:
|
||||||
self.historymonitor.stop()
|
self.historymonitor.stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user