From a38640c721c03200a97c0d72444a6da1b58edbc6 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Thu, 11 Aug 2022 14:39:23 +0200 Subject: [PATCH] don't abort flow on connection error --- flow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow.go b/flow.go index 08cc00d..0686d9d 100644 --- a/flow.go +++ b/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) {