more debug

This commit is contained in:
Zack Scholl 2019-05-02 20:47:41 -07:00
parent 8beaf65007
commit 63f4553e4b
1 changed files with 5 additions and 1 deletions

View File

@ -570,7 +570,9 @@ func (c *Client) processMessage(payload []byte) (done bool, err error) {
return
}
err = c.updateState()
if err != nil {
log.Debugf("got error from updating state: %s",err.Error())
}
return
}
@ -687,11 +689,13 @@ func (c *Client) updateState() (err error) {
CurrentFileChunks: c.CurrentFileChunks,
FilesToTransferCurrentNum: c.FilesToTransferCurrentNum,
})
log.Debugf("sending recipient ready with %d chunks",len(c.CurrentFileChunks))
err = message.Send(c.conn[0], c.Key, message.Message{
Type: "recipientready",
Bytes: bRequest,
})
if err != nil {
log.Error(err)
return
}
c.Step3RecipientRequestFile = true