mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-18 10:22:51 +00:00
don't abort flow on connection error
This commit is contained in:
parent
b6b29bc497
commit
a38640c721
2
flow.go
2
flow.go
@ -208,7 +208,7 @@ func (f *KeycardFlow) connectedFlow() (FlowStatus, error) {
|
||||
defer f.closeKeycard(kc)
|
||||
|
||||
if kc == nil {
|
||||
return nil, errors.New(ErrorConnection)
|
||||
return nil, f.pauseAndRestart(InsertCard, ErrorConnection)
|
||||
}
|
||||
|
||||
if factoryReset, ok := f.params[FactoryReset]; ok && factoryReset.(bool) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user