diff --git a/gather.go b/gather.go index b9c830b..f3417d6 100644 --- a/gather.go +++ b/gather.go @@ -347,9 +347,8 @@ func (a *Agent) gatherCandidatesRelay(urls []*URL) error { RelAddr: laddr.IP.String(), RelPort: laddr.Port, OnClose: func() error { - err2 := relayConn.Close() client.Close() - return err2 + return locConn.Close() }, } candidate, err := NewCandidateRelay(&relayConfig)