Browse Source

Bug 1520: Resuming file upload in active FTP mode does not work on some servers

https://winscp.net/tracker/1520

Source commit: afc9ffb1285b87147aaa223a89c65b26fbd0af0f
Martin Prikryl 8 years ago
parent
commit
2f04f171e5
1 changed files with 1 additions and 2 deletions
  1. 1 2
      source/filezilla/FtpControlSocket.cpp

+ 1 - 2
source/filezilla/FtpControlSocket.cpp

@@ -4257,8 +4257,7 @@ void CFtpControlSocket::FileTransfer(t_transferfile *transferfile/*=0*/,BOOL bFi
     m_pTransferSocket->m_transferdata=pData->transferdata;
     // not sure what happens when we active transfer socket immediately while resuming
     // it can possibly make transfer socket start reading from a file before a file pointer is advanced
-    if (GetOptionVal(OPTION_MPEXT_TRANSFER_ACTIVE_IMMEDIATELY) ||
-        ((pData->transferfile.get || !pData->transferdata.bResume) && !pData->bPasv))
+    if (GetOptionVal(OPTION_MPEXT_TRANSFER_ACTIVE_IMMEDIATELY) || !pData->bPasv)
     {
       m_pTransferSocket->SetActive();
     }