From 5bc5c5dc1bc55e5e2d6ceff4bc289884ab01e7bb Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 6 Aug 2021 20:02:47 +0100 Subject: [PATCH] Remove forgotten lock --- routes.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/routes.go b/routes.go index e188b91c..4838cda6 100644 --- a/routes.go +++ b/routes.go @@ -50,13 +50,11 @@ func (h *Headscale) EnableNodeRoute(namespace string, nodeName string, routeStr // Definetely not accessible from the CLI tool. // We need RPC to the server - or some kind of 'needsUpdate' field in the DB peers, _ := h.getPeers(*m) - h.pollMu.Lock() for _, p := range *peers { if pUp, ok := h.clientsPolling.Load(uint64(p.ID)); ok { pUp.(chan []byte) <- []byte{} } } - h.pollMu.Unlock() return &rIP, nil } }