1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 02:15:31 +02:00

[fix] Mutex mis-use in FTPService

This commit is contained in:
Martin Oberhuber 2007-04-04 15:50:29 +00:00
parent aefb17b2fb
commit d7130bddc3

View file

@ -670,16 +670,13 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
if(_downloadMutex.waitForLock(monitor, Long.MAX_VALUE)) if(_downloadMutex.waitForLock(monitor, Long.MAX_VALUE))
{ {
MyProgressMonitor progressMonitor = new MyProgressMonitor(monitor);
IHostFile remoteHostFile = getFile(null,remoteParent,remoteFile);
FTPClient ftpClient = getFTPClient();
try try
{ {
MyProgressMonitor progressMonitor = new MyProgressMonitor(monitor);
IHostFile remoteHostFile = getFile(null,remoteParent,remoteFile);
FTPClient ftpClient = getFTPClient();
remoteParent = adaptPath(remoteParent); remoteParent = adaptPath(remoteParent);
ftpClient.changeWorkingDirectory(remoteParent); ftpClient.changeWorkingDirectory(remoteParent);
if (isBinary) if (isBinary)