Skip to content

Commit 8bd227c

Browse files
authored
Merge pull request #241 from linux-credentials/pause-nfc-polling
daemon: Add pause between NFC polling
2 parents 1f2c8ea + b859971 commit 8bd227c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- daemon: Fix UI service failing to launch when started manually instead of via D-Bus activation.
66
- daemon: Allow Firefox to contact daemon on more distros with different app IDs (Thank you, @michaelbeaumont!)
77
- daemon: Fix all subsequent requests being rejected after the UI failed to launch.
8+
- daemon: Don't busy loop polling for NFC devices when NFC is enabled.
89
- ui: Add Bulgarian translation (Thank you, @salif!)
910
- webext: Try to read app ID from associated desktop entry (Thank you, @michaelbeaumont!)
1011
- ui: Basic recovery from failed attempts to use devices (e.g. flaky bluetooth)

‎credentialsd/src/credential_service/nfc.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ impl InProcessNfcHandler {
4848
match result {
4949
Ok(Some(nfc_device)) => Ok(NfcStateInternal::Connected(nfc_device)),
5050
Ok(None) => {
51+
tokio::time::sleep(Duration::from_millis(100)).await;
5152
let state = NfcStateInternal::Waiting;
5253
Ok(state)
5354
}

0 commit comments

Comments
 (0)