mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
[fix] Mutex mis-use in FTPService
This commit is contained in:
parent
aefb17b2fb
commit
d7130bddc3
1 changed files with 4 additions and 7 deletions
|
@ -670,16 +670,13 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
|
|||
|
||||
if(_downloadMutex.waitForLock(monitor, Long.MAX_VALUE))
|
||||
{
|
||||
MyProgressMonitor progressMonitor = new MyProgressMonitor(monitor);
|
||||
|
||||
IHostFile remoteHostFile = getFile(null,remoteParent,remoteFile);
|
||||
|
||||
FTPClient ftpClient = getFTPClient();
|
||||
|
||||
try
|
||||
{
|
||||
MyProgressMonitor progressMonitor = new MyProgressMonitor(monitor);
|
||||
IHostFile remoteHostFile = getFile(null,remoteParent,remoteFile);
|
||||
FTPClient ftpClient = getFTPClient();
|
||||
|
||||
remoteParent = adaptPath(remoteParent);
|
||||
|
||||
ftpClient.changeWorkingDirectory(remoteParent);
|
||||
|
||||
if (isBinary)
|
||||
|
|
Loading…
Add table
Reference in a new issue