Skip to content

Commit 9533cd6

Browse files
committed
Handle exit signals when controller is starting
1 parent 396b561 commit 9533cd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/benchbot_robot_controller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ def start(self):
162162
# Wait until we move into a running state
163163
start_time = time.time()
164164
while not self.is_running():
165-
time.sleep(0.25)
165+
if self._events and self._events.wait(0.25):
166+
return False
166167
if not self.health_check(check_running=False):
167168
return False
168169
elif (time.time() - start_time > TIMEOUT_STARTUP and

0 commit comments

Comments
 (0)