From 4d21770542b6b2d8a0399e733e84a76af9711100 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 4 Jul 2024 17:30:49 +0800 Subject: [PATCH] Should not stop cancelling read if timeout'd --- pytec/pytec/aioclient.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pytec/pytec/aioclient.py b/pytec/pytec/aioclient.py index d88ebfe..39d15e0 100644 --- a/pytec/pytec/aioclient.py +++ b/pytec/pytec/aioclient.py @@ -93,8 +93,7 @@ class Client: async def _command(self, *command): async with self._command_lock: - # protect the read-write process from being cancelled midway - line = await asyncio.shield(self._read_write(command)) + line = await self._read_write(command) response = json.loads(line) logging.debug("%s: %s", command, response)