Skip to content

Commit

Permalink
Make sure to set the connectionController to nil when the smart card …
Browse files Browse the repository at this point in the history
…is removed, otherwise the connection state will not be corect when the delegate is being called.
  • Loading branch information
jensutbult committed Oct 17, 2024
1 parent c3f11d9 commit 912d6ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ - (void)updateConnections API_AVAILABLE(ios(16.0)) {
}
}];
} else if (self.connectionController != nil) {
[self.delegate didDisconnectSmartCard:self error:nil];
self.connectionController = nil;
[self.delegate didDisconnectSmartCard:self error:nil];
[self.currentSession clearSessionState];
self.currentSession = nil;
}
Expand Down

0 comments on commit 912d6ff

Please sign in to comment.