diff --git a/ahserver/xtermProcessor.py b/ahserver/xtermProcessor.py index 9962690..e7c286b 100644 --- a/ahserver/xtermProcessor.py +++ b/ahserver/xtermProcessor.py @@ -70,10 +70,10 @@ class XtermProcessor(PythonScriptProcessor): x = await self.p_obj.stdout.read(1024) await self.ws_sendstr(ws, x) except (asyncio.CancelledError, EOFError): - pass - finally: + pass + finally: self.p_obj.close() - stdin_task.cancel() + stdin_task.cancel() async def ws_sendstr(self, ws:web.WebSocketResponse, s:str): data = {