diff --git a/r2r/src/nodes.rs b/r2r/src/nodes.rs index 5cc2842..3e86d5f 100644 --- a/r2r/src/nodes.rs +++ b/r2r/src/nodes.rs @@ -1241,7 +1241,7 @@ impl Node { let timer = Timer_ { timer_handle, - _clock: clock, + _clock: Some(clock), sender: tx, }; self.timers.push(timer); @@ -1279,7 +1279,7 @@ impl RclTimer { struct Timer_ { timer_handle: Pin>, - _clock: Clock, // just here to be dropped properly later. + _clock: Option, // Some(clock) if the timer owns the clock, just here to be dropped properly later. sender: mpsc::Sender, }