Develop
Compare changes
- Malte Bauch authored
- 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
+ 48
− 42
@@ -10,6 +10,7 @@ import (
@@ -401,6 +402,7 @@ func (pnd *pndImplementation) handleCsbiDeletion(id uuid.UUID) error {
@@ -412,61 +414,65 @@ func (pnd *pndImplementation) handleCsbiEnrolment(name string, opt *tpb.Transpor