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:
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))
|
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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue