Skip to content

Terminate process if component thread crashes #1

@bennofs

Description

@bennofs

Right now, parts of the application may crash without terminating the application:

Sep 09 23:51:37 latte ascii-pay-nfc-terminal-start[2876237]: thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: NoService>
Sep 09 23:51:37 latte ascii-pay-nfc-terminal-start[2876237]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After this, the application is still running but no NFC cards are scanned anymore.
Terminating fully in this case will allow the service manager (systemd) to restart the application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions