Skip to content

Commit 965f4dc

Browse files
committed
recv_internal: timeout=None means block forever
1 parent d36b6a6 commit 965f4dc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

candle/candle_bus.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,8 @@ def _recv_internal(self, timeout: Optional[float]) -> Tuple[Optional[can.Message
182182
if frame is not None:
183183
return convert_frame(i, frame, self._hardware_timestamps[i]), False
184184

185-
# Do not block if timeout is None.
186185
if timeout is None:
187-
return None, False
186+
timeout = 2**64 - 1
188187

189188
# Block until a frame is available.
190189
if not self._device.wait_for_frame(timeout):

0 commit comments

Comments
 (0)