mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-27 12:06:31 -08:00
Two paths reach suggestExitNodeLocked and then return without a broadcast: editPrefsLocked, when the edit is a no-op or the policy check rejects it, and reconcilePrefs, when the prefs are unchanged. Before the pending flag they announced a changed suggestion at once. Both now flush it before returning. TestSuggestedExitNodePendingFlushed marks a suggestion as pending and calls each entry point that can recompute it, checking that a Notify carries the suggestion and the flag is clear afterwards. Without the two flushes, the EditPrefs and reconcilePrefs cases fail. Updates #22206 Signed-off-by: Brendan Creane <[email protected]>