Skip to content

Commit 78689f5

Browse files
authored
Set context when creating Timer. (#525)
Signed-off-by: Donghee Ye <[email protected]>
1 parent 211da41 commit 78689f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rclpy/rclpy/executors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def _wait_for_ready_callbacks(
441441
timeout_timer = None
442442
timeout_nsec = timeout_sec_to_nsec(timeout_sec)
443443
if timeout_nsec > 0:
444-
timeout_timer = Timer(None, None, timeout_nsec, self._clock)
444+
timeout_timer = Timer(None, None, timeout_nsec, self._clock, context=self._context)
445445

446446
yielded_work = False
447447
while not yielded_work and not self._is_shutdown:

0 commit comments

Comments
 (0)