diff options
author | Pascal Rapicault | 2010-04-08 19:36:15 +0000 |
---|---|---|
committer | Pascal Rapicault | 2010-04-08 19:36:15 +0000 |
commit | 57a7afca33049e3b367898507cda2091b52c604b (patch) | |
tree | de5d6ee3818ebd963b0137873f13f0b22231b44e | |
parent | da0d8cda880af9540db84372d7b56a96c8a6b88d (diff) | |
download | rt.equinox.p2-57a7afca33049e3b367898507cda2091b52c604b.tar.gz rt.equinox.p2-57a7afca33049e3b367898507cda2091b52c604b.tar.xz rt.equinox.p2-57a7afca33049e3b367898507cda2091b52c604b.zip |
Stop the agent
-rw-r--r-- | bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/Application.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/Application.java b/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/Application.java index 4ce966101..7569f2266 100644 --- a/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/Application.java +++ b/bundles/org.eclipse.equinox.p2.garbagecollector/src/org/eclipse/equinox/internal/p2/garbagecollector/Application.java @@ -48,9 +48,10 @@ public class Application implements IApplication { initializeServices(); IProfile profile = getProfile(profileId); if (profile == null) - throw new IllegalArgumentException("\"" + profileId + "\" is not a valid profile identifier."); + throw new IllegalArgumentException("\"" + profileId + "\" is not a valid profile identifier."); //$NON-NLS-1$//$NON-NLS-2$ GarbageCollector gc = (GarbageCollector) agent.getService(GarbageCollector.SERVICE_NAME); gc.runGC(profile); + agent.stop(); return null; } |