-- unnecessary variable -- (read desc)

Timer and delay makes it horrible because lack of sleep(500); or something like it - as far as i know.

@notiant Will you?
This commit is contained in:
Turann_
2026-03-06 01:05:22 +03:00
parent 237227f288
commit bdc263ea69
+3 -7
View File
@@ -660,15 +660,11 @@ Singleton {
return;
}
var devList = adapter.devices.values.filter(function (dev) {
return dev && dev.paired && !dev.connected && !dev.blocked && getDeviceAutoConnect(dev.address) === true;
});
var devList = adapter.devices.values.filter(function (dev) { return dev && dev.paired && !dev.connected && !dev.blocked && getDeviceAutoConnect(dev.address) === true; });
for (var i = 0; i < devList.length; i++) {
let dev = devList[i];
Logger.i("Bluetooth", "Auto-connecting to:", dev.name || dev.deviceName);
connectDeviceWithTrust(dev);
Logger.i("Bluetooth", "Auto-connecting to:", devList[i].name || devList[i].deviceName);
connectDeviceWithTrust(devList[i]);
}
}