Skip to content

Commit ed10311

Browse files
authored
Fixed an issue where cpu usage remained at 100% (#330)
1 parent 6c87533 commit ed10311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclrs/src/executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl SingleThreadedExecutor {
7171
| Err(RclrsError::RclError {
7272
code: RclReturnCode::Timeout,
7373
..
74-
}) => (),
74+
}) => std::thread::yield_now(),
7575
error => return error,
7676
}
7777
}

0 commit comments

Comments
 (0)