diff --git a/internal/platform/implementation/windows/bluetooth_classic_medium.cc b/internal/platform/implementation/windows/bluetooth_classic_medium.cc index 2428ceee..2a14c61e 100644 --- a/internal/platform/implementation/windows/bluetooth_classic_medium.cc +++ b/internal/platform/implementation/windows/bluetooth_classic_medium.cc @@ -592,6 +592,12 @@ winrt::fire_and_forget BluetoothClassicMedium::DeviceWatcher_Updated( std::string new_device_name = InspectableReader::ReadString( properties.Lookup(L"System.ItemNameDisplay")); + if (it->second->GetName() == new_device_name) { + NEARBY_LOGS(INFO) + << "Device name is same as old name, ignore the update."; + return {}; + } + it->second->SetName(new_device_name); NEARBY_LOGS(INFO)