mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
parent
09d35d248f
commit
aae56043cf
1 changed files with 2 additions and 0 deletions
|
@ -775,10 +775,12 @@ func (c *Client) processMessage(payload []byte) (done bool, err error) {
|
|||
c.CurrentFileChunkRanges = remoteFile.CurrentFileChunkRanges
|
||||
c.CurrentFileChunks = utils.ChunkRangesToChunks(c.CurrentFileChunkRanges)
|
||||
log.Debugf("current file chunks: %+v", c.CurrentFileChunks)
|
||||
c.mutex.Lock()
|
||||
c.chunkMap = make(map[uint64]struct{})
|
||||
for _, chunk := range c.CurrentFileChunks {
|
||||
c.chunkMap[uint64(chunk)] = struct{}{}
|
||||
}
|
||||
c.mutex.Unlock()
|
||||
c.Step3RecipientRequestFile = true
|
||||
|
||||
if c.Options.Ask {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue