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

don't hang it no acceptance

Fixes #171
This commit is contained in:
Zack Scholl 2019-11-17 12:59:29 -08:00
parent 04724f4900
commit b4f8fafb63

View file

@ -378,8 +378,13 @@ func (c *Client) Send(options TransferOptions) (err error) {
if err == nil { if err == nil {
// return if no error // return if no error
return return
} else {
log.Debugf("error from errchan: %s", err.Error())
} }
if !c.Options.DisableLocal { if !c.Options.DisableLocal {
if strings.Contains(err.Error(), "refusing files") {
errchan <- err
}
err = <-errchan err = <-errchan
} }
return err return err