1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

need to close goroutine corrrectly

This commit is contained in:
Zack Scholl 2019-11-21 15:10:21 -08:00
parent 5bafc99741
commit 3c03719863

View file

@ -376,8 +376,8 @@ func (c *Client) Send(options TransferOptions) (err error) {
} else {
log.Debugf("[%+v] got weird bytes: %+v", conn, data)
// throttle the reading
time.Sleep(100 * time.Millisecond)
break
errchan <- fmt.Errorf("gracefully refusing using the public relay")
return
}
}