bugfix
This commit is contained in:
parent
c7c9a3e446
commit
964f1a6482
@ -70,10 +70,10 @@ class XtermProcessor(PythonScriptProcessor):
|
|||||||
x = await self.p_obj.stdout.read(1024)
|
x = await self.p_obj.stdout.read(1024)
|
||||||
await self.ws_sendstr(ws, x)
|
await self.ws_sendstr(ws, x)
|
||||||
except (asyncio.CancelledError, EOFError):
|
except (asyncio.CancelledError, EOFError):
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
self.p_obj.close()
|
self.p_obj.close()
|
||||||
stdin_task.cancel()
|
stdin_task.cancel()
|
||||||
|
|
||||||
async def ws_sendstr(self, ws:web.WebSocketResponse, s:str):
|
async def ws_sendstr(self, ws:web.WebSocketResponse, s:str):
|
||||||
data = {
|
data = {
|
||||||
|
Loading…
Reference in New Issue
Block a user