Skip to content

Commit 5f6015a

Browse files
committed
Ensure workers wake up when a task is run
Signed-off-by: Michael X. Grey <[email protected]>
1 parent 49f5065 commit 5f6015a

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
@@ -147,7 +147,6 @@ impl ExecutorCommands {
147147
/// Tell the [`Executor`] to halt its spinning.
148148
pub fn halt_spinning(&self) {
149149
self.halt_spinning.store(true, Ordering::Release);
150-
// TODO(@mxgrey): Log errors here when logging becomes available
151150
self.executor_channel.wake_all_wait_sets();
152151
}
153152

@@ -297,6 +296,7 @@ impl WorkerCommands {
297296

298297
pub(crate) fn run_on_payload(&self, task: PayloadTask) {
299298
self.channel.send_payload_task(task);
299+
let _ = self.wakeup_wait_set.trigger();
300300
}
301301

302302
pub(crate) fn add_activity_listener(&self, listener: WeakActivityListener) {

0 commit comments

Comments
 (0)