Skip to content

Commit 3614240

Browse files
committed
fix(nfc): ignore error on poll send result
1 parent 3befbe2 commit 3614240

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nfc/thread.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ pub fn start_nfc_listener(mut nfc_rx: mpsc::Receiver<NfcCommand>, config: NfcCon
6969
sleep(Duration::from_millis(150));
7070
};
7171

72-
responder.send(uid).unwrap();
72+
// During poll we ignore possible send errors, as the receiver might be dropped due to network
73+
// status updates.
74+
let _ = responder.send(uid);
7375
}
7476
Read { responder } => {
7577
let result = nfc_reader.read_first_plain_text_ndef_record();

0 commit comments

Comments
 (0)