headscale
headscale copied to clipboard
Potential channel leak
Bug description
https://github.com/juanfont/headscale/blob/main/protocol_common_poll.go#L169 After this line, the function returns and updateChan will be left open. The closing call is here: https://github.com/juanfont/headscale/blob/main/protocol_common_poll.go#L613 which won't be reached if line 169 returns.