We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 740f00d commit ec02699Copy full SHA for ec02699
src/mdns.rs
@@ -110,13 +110,14 @@ pub async fn discover(data: Arc<Mutex<SharedDevices>>) {
110
}
111
112
// Look through paired devices for mac address
113
- match mac_addr {
+ let mac_addr = match mac_addr {
114
Some(m) => m,
115
None => {
116
warn!("Unable to get mac address for mDNS record");
117
continue;
118
119
- }
+ };
120
+
121
let mut lock = data.lock().await;
122
if let Ok(udid) = lock.get_udid_from_mac(mac_addr.to_string()).await {
123
if lock.devices.contains_key(&udid) {
0 commit comments