1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-02 17:53:41 +00:00

Add comments

This commit is contained in:
Anders Åberg
2025-10-14 15:44:20 -07:00
parent 67aeeb3a3b
commit a68fa10a47

View File

@@ -104,8 +104,11 @@ class CredentialProviderViewController: ASCredentialProviderViewController {
}
// Check the connection status by calling into Rust
// If the connection is has changed and is now disconnected, cancel the request
private func checkConnectionStatus() {
// Only check if we have a client
// Only check connection status if the client has been initialized.
// Initialization is done asynchronously, so we might be called before it's ready
// In that case we just skip this check and wait for the next timer tick and re-check
guard let client = self.client else {
return
}