From a68fa10a477fc4ede72dbbf5a593e30728614d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20=C3=85berg?= Date: Tue, 14 Oct 2025 15:44:20 -0700 Subject: [PATCH] Add comments --- .../CredentialProviderViewController.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift b/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift index 72d6679f0e7..3d0603ec52a 100644 --- a/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift +++ b/apps/desktop/macos/autofill-extension/CredentialProviderViewController.swift @@ -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 }