We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 385b18b commit 6c77285Copy full SHA for 6c77285
rclpy/rclpy/executors.py
@@ -55,11 +55,10 @@ def wait(self, timeout_sec=None):
55
if timeout_sec is not None and timeout_sec < 0:
56
timeout_sec = None
57
# Wait for all work to complete
58
- if timeout_sec is None or timeout_sec >= 0:
59
- with self._work_condition:
60
- if not self._work_condition.wait_for(
61
- lambda: self._num_work_executing == 0, timeout_sec):
62
- return False
+ with self._work_condition:
+ if not self._work_condition.wait_for(
+ lambda: self._num_work_executing == 0, timeout_sec):
+ return False
63
return True
64
65
0 commit comments