Skip to content
Snippets Groups Projects
Commit dd916308 authored by Malte Bauch's avatar Malte Bauch
Browse files

A panic within `createCsbiDevice` does not result in a crash

- Removed Goroutine in `createCsbiDevice` and calls of `panic()` have been
  changed to `return err`
- `createCsbiDevice` is now called as Goroutine from within the
  `handleCsbiEnrolment` method.
- Error handling is done by using a `ErrorGroup`

These changes prevent that panics are thrown from a Goroutine that was
originally called from `createCsbiDevice`. Now normal errors are thrown
and catched with the help of a `ErrorGroup`.

Fixes: #171
parent 32aa1a4e
No related branches found
No related tags found
Loading
Checking pipeline status
This commit is part of merge request !247. Comments created here will be created in the context of that merge request.
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment