Skip to content

Commit 2173e2e

Browse files
committed
Remove unnecessarily heavy is_running() check
1 parent 60d0aaa commit 2173e2e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/benchbot_robot_controller.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,10 @@ def start_logging(self):
191191
]
192192

193193
def stop(self):
194-
if not self.is_running():
195-
print("Controller Instance is not running. Skipping stop.")
196-
return False
194+
# We could be in the process of starting, so this check is inappropriate
195+
# if not self.is_running():
196+
# print("Controller Instance is not running. Skipping stop.")
197+
# return False
197198

198199
# Stop all of the open processes & logging
199200
for p in self._processes:

0 commit comments

Comments
 (0)