headscale icon indicating copy to clipboard operation
headscale copied to clipboard

Potential channel leak

Open awsong opened this issue 2 years ago • 0 comments

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.

awsong avatar Sep 15 '22 06:09 awsong