From d5bb5d68dbac19a34945918b51873fbba2c18310 Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Wed, 17 Nov 2021 12:07:59 +0300 Subject: [PATCH] unowned self --- Sources/Keycard/KeycardController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Keycard/KeycardController.swift b/Sources/Keycard/KeycardController.swift index 8dcec86..5307623 100644 --- a/Sources/Keycard/KeycardController.swift +++ b/Sources/Keycard/KeycardController.swift @@ -98,7 +98,7 @@ extension KeycardController: NFCTagReaderSessionDelegate { } public func tagReaderSession(_ session: NFCTagReaderSession, didInvalidateWithError error: Error) { - DispatchQueue.global().async { + DispatchQueue.global().async { [unowned self] in self.onFailure(error) } }