Yubico / yubikit-ios

Yubico Mobile iOS SDK - YubiKit
Apache License 2.0
195 stars 43 forks source link

Only call didFailConnectingNFC when an error has occurred #96

Closed jensutbult closed 2 years ago

jensutbult commented 2 years ago

Do not call didFailConnectingNFC when connection has been cancelled by calling stopNFCConnection on the NFC connection. This fixes a bug where we would pass on a nil value to a method designated as returning a non nil result.

Closes #94

WWSellers commented 2 years ago

Applied this change and did a few quick tests. The problem did not reproduce.