diff --git a/lib/relay/client/methods.go b/lib/relay/client/methods.go index 546e8279b..c4984e36f 100644 --- a/lib/relay/client/methods.go +++ b/lib/relay/client/methods.go @@ -109,8 +109,8 @@ func TestRelay(uri *url.URL, certs []tls.Certificate, sleep time.Duration, times } go c.Serve() defer func() { - close(invs) c.Stop() + close(invs) }() for i := 0; i < times; i++ {