This commit is contained in:
Zack Scholl 2018-09-25 19:29:33 -07:00
parent a59399630d
commit 5a94062171
1 changed files with 2 additions and 3 deletions

View File

@ -240,8 +240,8 @@ func send(forceSend int, serverAddress string, tcpPorts []string, isLocal bool,
err: nil,
}
if !useWebsockets {
log.Debug("sending extra magic")
for i := 0; i < len(tcpConnections)-1; i++ {
log.Debug("sending extra magic to %d others", len(tcpPorts)-1)
for i := 0; i < len(tcpPorts)-1; i++ {
log.Debug("sending magic")
dataChan <- DataChan{
b: []byte("magic"),
@ -350,7 +350,6 @@ func send(forceSend int, serverAddress string, tcpPorts []string, isLocal bool,
go func(i int, wg *sync.WaitGroup, dataChan <-chan DataChan, tcpConnection comm.Comm) {
defer wg.Done()
for data := range dataChan {
log.Debugf("%d sending", i)
if data.err != nil {
log.Error(data.err)
return