control/controlclient: handle errors in rememberLastNetmapUpdator (#19112)

If errors occured, the updater could end up deadlocked.

Closing the done channel rather than adding to it, fixes a deadlock in
the corp tests.

Updates #19111

Signed-off-by: Claus Lensbøl <claus@tailscale.com>
This commit is contained in:
Claus Lensbøl
2026-03-24 20:36:34 -04:00
committed by GitHub
parent bb59942df2
commit 9a4a2db0fc
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -669,7 +669,7 @@ func TestUpdateDiscoForNode(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
nu := &rememberLastNetmapUpdater{
done: make(chan any),
done: make(chan any, 1),
}
ms := newTestMapSession(t, nu)