unowned self

This commit is contained in:
Michele Balistreri 2021-11-17 12:07:59 +03:00 committed by GitHub
parent da4b4526c1
commit d5bb5d68db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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