mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
Close channel after the client is stopped
This commit is contained in:
parent
32414853c6
commit
73236e58c5
@ -109,8 +109,8 @@ func TestRelay(uri *url.URL, certs []tls.Certificate, sleep time.Duration, times
|
|||||||
}
|
}
|
||||||
go c.Serve()
|
go c.Serve()
|
||||||
defer func() {
|
defer func() {
|
||||||
close(invs)
|
|
||||||
c.Stop()
|
c.Stop()
|
||||||
|
close(invs)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
for i := 0; i < times; i++ {
|
for i := 0; i < times; i++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user