mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
ok
This commit is contained in:
parent
cf898bef18
commit
b8b41fad30
1 changed files with 4 additions and 3 deletions
|
@ -1698,7 +1698,7 @@ func (c *Client) recipientGetFileReady(finished bool) (err error) {
|
||||||
FilesToTransferCurrentNum: c.FilesToTransferCurrentNum,
|
FilesToTransferCurrentNum: c.FilesToTransferCurrentNum,
|
||||||
MachineID: machID,
|
MachineID: machID,
|
||||||
})
|
})
|
||||||
log.Debug("converting to chunk range")
|
log.Tracef("utils.ChunkRangesToChunks(c.CurrentFileChunkRanges)")
|
||||||
c.CurrentFileChunks = utils.ChunkRangesToChunks(c.CurrentFileChunkRanges)
|
c.CurrentFileChunks = utils.ChunkRangesToChunks(c.CurrentFileChunkRanges)
|
||||||
|
|
||||||
if !finished {
|
if !finished {
|
||||||
|
@ -1706,8 +1706,7 @@ func (c *Client) recipientGetFileReady(finished bool) (err error) {
|
||||||
c.setBar()
|
c.setBar()
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debugf("sending recipient ready with %d chunks", len(c.CurrentFileChunks))
|
log.Tracef("sending recipient ready with %d chunks", len(c.CurrentFileChunks))
|
||||||
log.Tracef("recipientGetFileReady: sending recipient chunks")
|
|
||||||
err = message.Send(c.conn[0], c.Key, message.Message{
|
err = message.Send(c.conn[0], c.Key, message.Message{
|
||||||
Type: message.TypeRecipientReady,
|
Type: message.TypeRecipientReady,
|
||||||
Bytes: bRequest,
|
Bytes: bRequest,
|
||||||
|
@ -1879,11 +1878,13 @@ func (c *Client) fmtPrintUpdate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) updateState() (err error) {
|
func (c *Client) updateState() (err error) {
|
||||||
|
log.Tracef("c.updateIfSenderChannelSecured()")
|
||||||
err = c.updateIfSenderChannelSecured()
|
err = c.updateIfSenderChannelSecured()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Tracef("c.updateIfRecipientHasFileInfo()")
|
||||||
err = c.updateIfRecipientHasFileInfo()
|
err = c.updateIfRecipientHasFileInfo()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue