lib/relay: Close invitation channel in all error cases (fixes #3726)
This commit is contained in:
committed by
Jakob Borg
parent
f60b424d70
commit
38d28c3f4a
@@ -48,6 +48,7 @@ func newDynamicClient(uri *url.URL, certs []tls.Certificate, invitations chan pr
|
||||
}
|
||||
|
||||
func (c *dynamicClient) Serve() {
|
||||
defer c.cleanup()
|
||||
c.mut.Lock()
|
||||
c.stop = make(chan struct{})
|
||||
c.mut.Unlock()
|
||||
@@ -75,8 +76,6 @@ func (c *dynamicClient) Serve() {
|
||||
return
|
||||
}
|
||||
|
||||
defer c.cleanup()
|
||||
|
||||
var addrs []string
|
||||
for _, relayAnn := range ann.Relays {
|
||||
ruri, err := url.Parse(relayAnn.URL)
|
||||
|
||||
Reference in New Issue
Block a user