mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-03 18:43:38 +01:00
Move cachedRecordsByOrg deletion inside the client initialization error branch in TrueNASPoller.syncConnections so config edits that build a new client (such as changing OutboundPolicy) retain last-accepted cached records if the new provider's first refresh fails, while invalid edits that fail client construction still fail closed and clear stale records. Skip nil snapshots in rebuildCachedRecordsForOrg so sibling refreshes cannot clobber preserved records before the rebuilt provider completes its first refresh. Change-source: pulse-maintainer