mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Prevent deadlock when opening projects while refreshing the executables list.
This commit is contained in:
parent
f940989086
commit
c72e99bd35
1 changed files with 1 additions and 1 deletions
|
@ -102,9 +102,9 @@ public class ExecutablesManager extends PlatformObject implements IResourceChang
|
|||
if (provider != null) {
|
||||
trace("Getting executables for project: " + project.getName() + " using " + provider.toString()); //$NON-NLS-1$//$NON-NLS-2$
|
||||
|
||||
List<Executable> executables = provider.getExecutables(project, subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE));
|
||||
// store the list of executables for this project
|
||||
synchronized (executablesMap) {
|
||||
List<Executable> executables = provider.getExecutables(project, subMonitor.newChild(1, SubMonitor.SUPPRESS_NONE));
|
||||
if (!monitor.isCanceled()) {
|
||||
executablesMap.put(project, executables);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue