We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6ce8f6 + 4061f71 commit e664747Copy full SHA for e664747
1 file changed
canopen/sdo/client.py
@@ -109,8 +109,9 @@ def read_response(self):
109
110
async def aread_response(self):
111
try:
112
- response = await self.aresponses.get()
113
- except queue.Empty:
+ response = await asyncio.wait_for(
+ self.aresponses.get(), timeout=self.RESPONSE_TIMEOUT)
114
+ except asyncio.TimeoutError:
115
raise SdoCommunicationError("No SDO response received")
116
res_command, = struct.unpack_from("B", response)
117
if res_command == RESPONSE_ABORTED:
0 commit comments