daemon: inotify for panel_od and gu_mux_mode

This commit is contained in:
Luke D. Jones
2022-09-21 19:04:28 +12:00
parent a44a1bfa89
commit 56285916cd
8 changed files with 73 additions and 15 deletions

View File

@@ -222,7 +222,7 @@ impl CtrlTask for ProfileZbus {
async fn create_tasks<'a>(
&self,
executor: &mut Executor<'a>,
signal: SignalContext<'a>,
signal_ctxt: SignalContext<'a>,
) -> Result<(), RogError> {
let ctrl = self.inner.clone();
let mut inotify = Inotify::init()?;
@@ -247,7 +247,9 @@ impl CtrlTask for ProfileZbus {
}
if let Some(active_profile) = active_profile {
Self::notify_profile(&signal, active_profile).await.ok();
Self::notify_profile(&signal_ctxt, active_profile)
.await
.ok();
}
}
}