We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95fefa6 commit 7fb3dfeCopy full SHA for 7fb3dfe
rcljava/src/main/java/org/ros2/rcljava/executors/BaseExecutor.java
@@ -332,12 +332,12 @@ protected void spinSome() {
332
AnyExecutable anyExecutable = getNextExecutable();
333
if (anyExecutable == null) {
334
waitForWork(0);
335
- do {
336
- anyExecutable = getNextExecutable();
337
- if (anyExecutable != null) {
338
- executeAnyExecutable(anyExecutable);
339
- }
340
- } while (anyExecutable != null);
+ anyExecutable = getNextExecutable();
+ }
+
+ while (anyExecutable != null) {
+ executeAnyExecutable(anyExecutable);
341
}
342
343
0 commit comments