From 7ac7be37af71ca0428e255761a304c89dfd1973e Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Tue, 20 Apr 2021 15:36:46 -0700 Subject: [PATCH] check if file exists --- src/croc/croc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index fb872fbb..2a8d2818 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -1239,10 +1239,10 @@ func (c *Client) updateIfRecipientHasFileInfo() (err error) { if _, ok := c.FilesHasFinished[i]; ok { continue } - log.Debugf("checking %+v", fileInfo) if i < c.FilesToTransferCurrentNum { continue } + log.Debugf("checking %+v", fileInfo) recipientFileInfo, errRecipientFile := os.Lstat(path.Join(fileInfo.FolderRemote, fileInfo.Name)) var errHash error var fileHash []byte