浏览代码

Bug fix: Reported transfer size is rarely incorrect during FTP downloads

Source commit: 5d6040cb98588d23bb4c87e14967b8222ccc2a8d
Martin Prikryl 1 年之前
父节点
当前提交
3188e64164
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      source/filezilla/TransferSocket.cpp

+ 7 - 0
source/filezilla/TransferSocket.cpp

@@ -446,6 +446,13 @@ void CTransferSocket::OnClose(int nErrorCode)
 
 
   OnReceive(0);
   OnReceive(0);
   CloseAndEnsureSendClose(0);
   CloseAndEnsureSendClose(0);
+  // Report pending transfer
+  // (particularly during ascii downloads, when the transferred data might be larger than expected,
+  // though possibly also when downloading a growing file)
+  if (FLAGSET(m_nMode, CSMODE_DOWNLOAD))
+  {
+    UpdateStatusBar(true);
+  }
 }
 }
 
 
 int CTransferSocket::CheckForTimeout(int delay)
 int CTransferSocket::CheckForTimeout(int delay)