mirror of https://github.com/schollz/croc.git
more debug
This commit is contained in:
parent
8beaf65007
commit
63f4553e4b
|
@ -570,7 +570,9 @@ func (c *Client) processMessage(payload []byte) (done bool, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = c.updateState()
|
err = c.updateState()
|
||||||
|
if err != nil {
|
||||||
|
log.Debugf("got error from updating state: %s",err.Error())
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -687,11 +689,13 @@ func (c *Client) updateState() (err error) {
|
||||||
CurrentFileChunks: c.CurrentFileChunks,
|
CurrentFileChunks: c.CurrentFileChunks,
|
||||||
FilesToTransferCurrentNum: c.FilesToTransferCurrentNum,
|
FilesToTransferCurrentNum: c.FilesToTransferCurrentNum,
|
||||||
})
|
})
|
||||||
|
log.Debugf("sending recipient ready with %d chunks",len(c.CurrentFileChunks))
|
||||||
err = message.Send(c.conn[0], c.Key, message.Message{
|
err = message.Send(c.conn[0], c.Key, message.Message{
|
||||||
Type: "recipientready",
|
Type: "recipientready",
|
||||||
Bytes: bRequest,
|
Bytes: bRequest,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Error(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
c.Step3RecipientRequestFile = true
|
c.Step3RecipientRequestFile = true
|
||||||
|
|
Loading…
Reference in New Issue