Close channel after the client is stopped

This commit is contained in:
Audrius Butkevicius 2015-10-22 23:09:02 +01:00
parent 32414853c6
commit 73236e58c5

View File

@ -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++ {