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:
parent
5bafc99741
commit
3c03719863
1 changed files with 2 additions and 2 deletions
|
@ -376,8 +376,8 @@ func (c *Client) Send(options TransferOptions) (err error) {
|
||||||
} else {
|
} else {
|
||||||
log.Debugf("[%+v] got weird bytes: %+v", conn, data)
|
log.Debugf("[%+v] got weird bytes: %+v", conn, data)
|
||||||
// throttle the reading
|
// throttle the reading
|
||||||
time.Sleep(100 * time.Millisecond)
|
errchan <- fmt.Errorf("gracefully refusing using the public relay")
|
||||||
break
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue