mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 07:15:39 +02:00
[284018] concurrent SubSystem.connect() calls can result in double login-prompt
This commit is contained in:
parent
c0f678f895
commit
314fdbab31
1 changed files with 34 additions and 26 deletions
|
@ -47,6 +47,7 @@
|
||||||
* David McKnight (IBM) - [226787] [services] Dstore processes subsystem is empty after switching from shell processes
|
* David McKnight (IBM) - [226787] [services] Dstore processes subsystem is empty after switching from shell processes
|
||||||
* David McKnight (IBM) - [262930] Remote System Details view not restoring filter memento input
|
* David McKnight (IBM) - [262930] Remote System Details view not restoring filter memento input
|
||||||
* David McKnight (IBM) - [272882] [api] Handle exceptions in IService.initService()
|
* David McKnight (IBM) - [272882] [api] Handle exceptions in IService.initService()
|
||||||
|
* David McKnight (IBM) - [284018] concurrent SubSystem.connect() calls can result in double login-prompt
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.core.subsystems;
|
package org.eclipse.rse.core.subsystems;
|
||||||
|
@ -2460,6 +2461,10 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
|
||||||
|
|
||||||
final Exception[] exception=new Exception[1];
|
final Exception[] exception=new Exception[1];
|
||||||
exception[0]=null;
|
exception[0]=null;
|
||||||
|
|
||||||
|
IConnectorService conServ = getConnectorService();
|
||||||
|
synchronized (conServ){
|
||||||
|
if (!conServ.isConnected()){
|
||||||
Display.getDefault().syncExec(new Runnable() {
|
Display.getDefault().syncExec(new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
try
|
try
|
||||||
|
@ -2470,6 +2475,8 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Exception e = exception[0];
|
Exception e = exception[0];
|
||||||
if (e == null) {
|
if (e == null) {
|
||||||
|
@ -2491,6 +2498,7 @@ implements IAdaptable, ISubSystem, ISystemFilterPoolReferenceManagerProvider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* (non-Javadoc)
|
* (non-Javadoc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue