mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +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()
|
||||
defer func() {
|
||||
close(invs)
|
||||
c.Stop()
|
||||
close(invs)
|
||||
}()
|
||||
|
||||
for i := 0; i < times; i++ {
|
||||
|
Loading…
Reference in New Issue
Block a user