Bump timer to every hour, fix spelling typo

This commit is contained in:
Garth Vander Houwen 2025-06-19 16:14:09 -07:00
parent 2c68b4e8d2
commit 67a2b0631f
2 changed files with 5 additions and 2 deletions

View file

@ -19830,6 +19830,9 @@
}
}
}
},
"Nodes without PKI keys are cleared from the app database on the schedule set by the user, nodes with PKI keys are cleared only if the interval is set to 7 days or longer. This feature only purges nodes from the app that are not stored in the device node database." : {
},
"None" : {
"localizations" : {

View file

@ -87,8 +87,8 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
super.init()
centralManager = CBCentralManager(delegate: self, queue: nil)
mqttManager.delegate = self
// Run clearStaleNodes every 10 minutes
maintenenceTimer = Timer.scheduledTimer(withTimeInterval: 60, repeats: true, block: { _ in
// Run clearStaleNodes every hour
maintenanceTimer = Timer.scheduledTimer(withTimeInterval: 3600, repeats: true, block: { _ in
let result = clearStaleNodes(nodeExpireDays: Int(self.purgeStaleNodeDays), context: self.context)
// If you are connected and the clear worked, pull nodes back from the node in case we have deleted anything from that app that is in the device nodedb
if result && self.isSubscribed {