Skip to content

Commit c93a77e

Browse files
committed
fix: remove stale device auto-sync to prevent phantom connection attempts
1 parent 052f11c commit c93a77e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/src/features/discovery/data/ble_discoverer.dart

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -270,17 +270,6 @@ class BLEDiscoverer {
270270
return;
271271
}
272272

273-
// Sync existing devices that are missing critical metadata (Zero-Read fallback)
274-
final needsSync = await isar.db.foundDevices
275-
.filter()
276-
.publicKeyIsNull()
277-
.findAll();
278-
for (final dev in needsSync) {
279-
if (!_syncQueue.containsKey(dev.stableId)) {
280-
_syncQueue[dev.stableId] = BluetoothDevice.fromId(dev.remoteId);
281-
}
282-
}
283-
284273
if (FlutterBluePlus.isScanningNow) {
285274
await FlutterBluePlus.stopScan();
286275
await Future.delayed(const Duration(seconds: 1));

0 commit comments

Comments
 (0)