Skip to content

Commit 317c8e6

Browse files
committed
fix: Emit on macOS when we get advertisement name OR local name
Followup to #447, we'll want to make sure we emit on change to either.
1 parent 99e1dcb commit 317c8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/corebluetooth/internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ impl CoreBluetoothInternal {
580580
.or(advertisement_name.clone());
581581

582582
if self.peripherals.contains_key(&uuid) {
583-
if local_name.is_some() {
583+
if local_name.is_some() || advertisement_name.is_some() {
584584
self.dispatch_event(CoreBluetoothEvent::DeviceUpdated {
585585
uuid,
586586
local_name,

0 commit comments

Comments
 (0)