mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Bump timer to every hour, fix spelling typo
This commit is contained in:
parent
2c68b4e8d2
commit
67a2b0631f
2 changed files with 5 additions and 2 deletions
|
|
@ -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" : {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue