mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
whoops
This commit is contained in:
parent
cb522f2f06
commit
2e7708e3cd
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ func (c *Comm) Read() (buf []byte, numBytes int, bs []byte, err error) {
|
||||||
n, errRead := c.connection.Read(tmp)
|
n, errRead := c.connection.Read(tmp)
|
||||||
if errRead != nil {
|
if errRead != nil {
|
||||||
err = errRead
|
err = errRead
|
||||||
logger.Debug("initial read error: %s", err.Error())
|
logger.Debugf("initial read error: %s", err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
header = append(header, tmp[:n]...)
|
header = append(header, tmp[:n]...)
|
||||||
|
@ -116,7 +116,7 @@ func (c *Comm) Read() (buf []byte, numBytes int, bs []byte, err error) {
|
||||||
n, errRead := c.connection.Read(tmp)
|
n, errRead := c.connection.Read(tmp)
|
||||||
if errRead != nil {
|
if errRead != nil {
|
||||||
err = errRead
|
err = errRead
|
||||||
logger.Debug("consecutive read error: %s", err.Error())
|
logger.Debugf("consecutive read error: %s", err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
buf = append(buf, tmp[:n]...)
|
buf = append(buf, tmp[:n]...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue