From acc2474479d643b69d255f439ccfe6ac36de01ac Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 12 Sep 2025 12:06:15 +0800 Subject: [PATCH] bugfix --- ahserver/xtermProcessor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ahserver/xtermProcessor.py b/ahserver/xtermProcessor.py index 5a17546..7861aa1 100644 --- a/ahserver/xtermProcessor.py +++ b/ahserver/xtermProcessor.py @@ -25,6 +25,10 @@ class XtermProcessor(PythonScriptProcessor): async for msg in ws: if msg.type == aiohttp.WSMsgType.TEXT: data = DictObject(**json.loads(msg.data)) + if data.type == 'close': + debug(f'accept client close request, close the ws') + self.running = False + return if data.type == 'input': self.p_obj.stdin.write(data.data) elif data.type == 'heartbeat':