mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-09 01:55:24 +02:00
[166156] don't call disconnect on disconnected subsystems during delete - since it causes lots of unnnecssary events
This commit is contained in:
parent
c1c163702a
commit
166f85cb21
1 changed files with 16 additions and 10 deletions
|
@ -932,6 +932,8 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
|
|||
|
||||
//System.out.println("in deleteSubSystemsByConnection. Nbr subsystems = " + subsystems.length);
|
||||
for (int idx = 0; idx < subsystems.length; idx++)
|
||||
{
|
||||
if (subsystems[idx].isConnected())
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -940,6 +942,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
|
|||
catch (Exception exc)
|
||||
{
|
||||
}
|
||||
}
|
||||
subsystems[idx].deletingConnection(); // let subsystem do any clean up needed prior to death
|
||||
deleteSubSystem(subsystems[idx]);
|
||||
}
|
||||
|
@ -1589,6 +1592,8 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
|
|||
* Handled for you!
|
||||
*/
|
||||
public boolean deleteSubSystem(ISubSystem subsystem)
|
||||
{
|
||||
if (subsystem.isConnected())
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -1597,6 +1602,7 @@ public abstract class SubSystemConfiguration implements ISubSystemConfiguration
|
|||
catch (Exception exc)
|
||||
{
|
||||
}
|
||||
}
|
||||
removeSubSystem(subsystem); // remove from our in-memory cache
|
||||
ISystemFilterPoolReferenceManager fpRefMgr = subsystem.getSystemFilterPoolReferenceManager();
|
||||
if (fpRefMgr != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue