commit
e1321c51a6
@ -42,7 +42,7 @@ func Dialer(address string, timeout time.Duration) (net.Conn, error) {
|
|||||||
close(stopC)
|
close(stopC)
|
||||||
go func() {
|
go func() {
|
||||||
dr := <-synC
|
dr := <-synC
|
||||||
if dr != nil {
|
if dr != nil && dr.c != nil {
|
||||||
dr.c.Close()
|
dr.c.Close()
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user