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