mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
Remove forgotten lock
This commit is contained in:
parent
db4f49901e
commit
5bc5c5dc1b
1 changed files with 0 additions and 2 deletions
|
@ -50,13 +50,11 @@ func (h *Headscale) EnableNodeRoute(namespace string, nodeName string, routeStr
|
||||||
// Definetely not accessible from the CLI tool.
|
// Definetely not accessible from the CLI tool.
|
||||||
// We need RPC to the server - or some kind of 'needsUpdate' field in the DB
|
// We need RPC to the server - or some kind of 'needsUpdate' field in the DB
|
||||||
peers, _ := h.getPeers(*m)
|
peers, _ := h.getPeers(*m)
|
||||||
h.pollMu.Lock()
|
|
||||||
for _, p := range *peers {
|
for _, p := range *peers {
|
||||||
if pUp, ok := h.clientsPolling.Load(uint64(p.ID)); ok {
|
if pUp, ok := h.clientsPolling.Load(uint64(p.ID)); ok {
|
||||||
pUp.(chan []byte) <- []byte{}
|
pUp.(chan []byte) <- []byte{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
h.pollMu.Unlock()
|
|
||||||
return &rIP, nil
|
return &rIP, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue