lib/relay: Prevent lock nil deref when creation dynamic client (#6175)

This commit is contained in:
Simon Frei 2019-11-21 18:45:06 +01:00 committed by Audrius Butkevicius
parent 8c91e012c7
commit de886b3f22

View File

@ -33,7 +33,7 @@ func newDynamicClient(uri *url.URL, certs []tls.Certificate, invitations chan pr
certs: certs,
timeout: timeout,
}
c.commonClient = newCommonClient(invitations, c.serve, c.String())
c.commonClient = newCommonClient(invitations, c.serve, fmt.Sprintf("dynamicClient@%p", c))
return c
}