From b8599714b683fb772153cfc6387364bfbcb7038e Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Mon, 5 Oct 2026 07:50:19 -0500 Subject: [PATCH] daemon: Add pause between NFC polling --- CHANGELOG.md | 1 + credentialsd/src/credential_service/nfc.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e191945..60b6a2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ - daemon: Fix UI service failing to launch when started manually instead of via D-Bus activation. - daemon: Allow Firefox to contact daemon on more distros with different app IDs (Thank you, @michaelbeaumont!) - daemon: Fix all subsequent requests being rejected after the UI failed to launch. +- daemon: Don't busy loop polling for NFC devices when NFC is enabled. - ui: Add Bulgarian translation (Thank you, @salif!) - webext: Try to read app ID from associated desktop entry (Thank you, @michaelbeaumont!) - ui: Basic recovery from failed attempts to use devices (e.g. flaky bluetooth) diff --git a/credentialsd/src/credential_service/nfc.rs b/credentialsd/src/credential_service/nfc.rs index f3ae821..438a632 100644 --- a/credentialsd/src/credential_service/nfc.rs +++ b/credentialsd/src/credential_service/nfc.rs @@ -48,6 +48,7 @@ impl InProcessNfcHandler { match result { Ok(Some(nfc_device)) => Ok(NfcStateInternal::Connected(nfc_device)), Ok(None) => { + tokio::time::sleep(Duration::from_millis(100)).await; let state = NfcStateInternal::Waiting; Ok(state) }