derp/derphttp: cleanup WebSocket connection on close

This was causing a leak in our CI!

Signed-off-by: Kyle Carberry <kyle@carberry.com>
This commit is contained in:
Kyle Carberry 2023-03-06 19:59:03 -06:00 committed by Mihai Parparita
parent be107f92d3
commit 3862a1e1d5
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ func (c *Client) connect(ctx context.Context, caller string) (client *derp.Clien
}
c.serverPubKey = derpClient.ServerPublicKey()
c.client = derpClient
c.netConn = tcpConn
c.netConn = conn
c.connGen++
return c.client, c.connGen, nil
case c.url != nil: