Revert "feature[TW19488]: Stop releasing sessions on shutdown" This reverts commit 3cb61f3130053d1d72fee32504d8993b7ead8631.
diff --git a/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/Activator.java b/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/Activator.java index 39f22fa..da77bb7 100644 --- a/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/Activator.java +++ b/plugins/org.eclipse.osee.framework.core.client/src/org/eclipse/osee/framework/core/client/internal/Activator.java
@@ -13,6 +13,7 @@ package org.eclipse.osee.framework.core.client.internal; +import org.eclipse.osee.framework.core.client.ClientSessionManager; import org.eclipse.osee.framework.core.client.server.HttpServer; import org.eclipse.osee.framework.plugin.core.OseeActivator; import org.osgi.framework.BundleContext; @@ -41,6 +42,7 @@ public void stop(BundleContext context) throws Exception { super.stop(context); HttpServer.stopServer(); + ClientSessionManager.releaseSession(); context = null; }
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/SessionContributionItem.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/SessionContributionItem.java index 2f220da..44620f7 100644 --- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/SessionContributionItem.java +++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/SessionContributionItem.java
@@ -66,6 +66,8 @@ boolean result = MessageDialog.openQuestion(AWorkbench.getActiveShell(), "Log Off...", "Are you sure you want to log off and exit OSEE?"); if (result) { + ClientSessionManager.releaseSession(); + PlatformUI.getWorkbench().close(); } } else {