don't abort flow on connection error

This commit is contained in:
Michele Balistreri 2022-08-11 14:39:23 +02:00
parent b6b29bc497
commit a38640c721

View File

@ -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) {