small robustness fix
Some checks are pending
Rust/sat-rs/pipeline/head Build queued...

This commit is contained in:
Robin Müller 2024-05-02 13:41:27 +02:00
parent 9ffe4d0ae0
commit 408803fe86
Signed by: muellerr
GPG Key ID: A649FB78196E3849
3 changed files with 6 additions and 3 deletions

View File

@ -88,7 +88,8 @@ impl<TmSender: EcssTmSender, TcInMemConverter: EcssTcInMemConverter> DirectPusSe
Self::SERVICE_STR, Self::SERVICE_STR,
e e
); );
return HandlingStatus::HandledOne; // To avoid permanent loops on continuous errors.
return HandlingStatus::Empty;
} }
match result.unwrap() { match result.unwrap() {
DirectPusPacketHandlerResult::Handled(handling_status) => return handling_status, DirectPusPacketHandlerResult::Handled(handling_status) => return handling_status,

View File

@ -108,7 +108,8 @@ impl<TmSender: EcssTmSender, TcInMemConverter: EcssTcInMemConverter> DirectPusSe
Self::SERVICE_STR, Self::SERVICE_STR,
e e
); );
return HandlingStatus::HandledOne; // To avoid permanent loops on continuous errors.
return HandlingStatus::Empty;
} }
match result.unwrap() { match result.unwrap() {
DirectPusPacketHandlerResult::Handled(handling_status) => return handling_status, DirectPusPacketHandlerResult::Handled(handling_status) => return handling_status,

View File

@ -88,7 +88,8 @@ impl<TmSender: EcssTmSender, TcInMemConverter: EcssTcInMemConverter> DirectPusSe
Self::SERVICE_STR, Self::SERVICE_STR,
e e
); );
return HandlingStatus::HandledOne; // To avoid permanent loops on continuous errors.
return HandlingStatus::Empty;
} }
match res.unwrap() { match res.unwrap() {
DirectPusPacketHandlerResult::Handled(handling_status) => { DirectPusPacketHandlerResult::Handled(handling_status) => {