we got bullshit todo

This commit is contained in:
2026-04-26 17:45:10 +00:00
parent 8edd36124b
commit 477abfd80b
2 changed files with 43 additions and 3 deletions

View File

@@ -135,12 +135,12 @@ open class DeviceNode(_address: UUID? = null) {
// called when a new node is added globally
open fun onNodeAdded(deviceNode: DeviceNode) {
reachableCache = null;
invalidateReachableCache()
}
// called when a node is removed globally
open fun onNodeRemoved(deviceNode: DeviceNode) {
reachableCache = null;
invalidateReachableCache()
}
fun getReachable(): Set<DeviceNode> {
@@ -150,7 +150,7 @@ open class DeviceNode(_address: UUID? = null) {
return reachableCache!!;
}
fun invalidateReachableCache() {
open fun invalidateReachableCache() {
reachableCache = null
}