Make Terminado stoppable

This commit is contained in:
R. Richard 2019-05-31 13:10:33 +02:00
parent 71f05fe92c
commit de6afdc84a
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -83,5 +83,6 @@ class TerminalEventHandler(EventHandlerBase):
return data
def cleanup(self):
self.terminado_server.stop()
if self.historymonitor:
self.historymonitor.stop()