Fix panic in k8s loadIngresses
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
be362f0d9f
commit
5a67d0ac84
5 changed files with 29 additions and 5 deletions
|
@ -152,11 +152,10 @@ func OperationWithRecover(operation backoff.Operation) backoff.Operation {
|
|||
return func() (err error) {
|
||||
defer func() {
|
||||
if res := recover(); res != nil {
|
||||
defaultRecoverGoroutine(err)
|
||||
defaultRecoverGoroutine(res)
|
||||
err = fmt.Errorf("Panic in operation: %s", err)
|
||||
}
|
||||
}()
|
||||
err = operation()
|
||||
return nil
|
||||
return operation()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue