Claus Lensbøl 2 weeks ago committed by GitHub
commit 425f3b5d38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -394,7 +394,9 @@ func (c *Client) listenPacket(ctx context.Context, network, addr string) (nettyp
func (c *Client) invalidateMappingsLocked(releaseOld bool) {
if c.mapping != nil {
if releaseOld {
c.mapping.Release(context.Background())
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()
c.mapping.Release(ctx)
}
c.mapping = nil
}

Loading…
Cancel
Save