This commit is contained in:
Dario Nieuwenhuis
2023-07-04 21:34:55 +02:00
parent 2a035a24a6
commit 9c4df46c46
4 changed files with 28 additions and 12 deletions

View File

@ -311,14 +311,14 @@ where
fn handle_event(&self, data: &[u8]) {
let Ok(event) = noproto::read::<CtrlMsg>(data) else {
warn!("failed to parse event");
return
return;
};
debug!("event: {:?}", &event);
let Some(payload) = &event.payload else {
warn!("event without payload?");
return
return;
};
match payload {