Author: ruschein
Date: 2011-06-16 15:33:57 -0700 (Thu, 16 Jun 2011)
New Revision: 25784

Modified:
   
csplugins/trunk/ucsd/mes/genomespace-plugin/src/main/java/cytoscape/genomespace/GSUtils.java
Log:
Don't log on to GS if we still have a valid session.

Modified: 
csplugins/trunk/ucsd/mes/genomespace-plugin/src/main/java/cytoscape/genomespace/GSUtils.java
===================================================================
--- 
csplugins/trunk/ucsd/mes/genomespace-plugin/src/main/java/cytoscape/genomespace/GSUtils.java
        2011-06-16 22:14:48 UTC (rev 25783)
+++ 
csplugins/trunk/ucsd/mes/genomespace-plugin/src/main/java/cytoscape/genomespace/GSUtils.java
        2011-06-16 22:33:57 UTC (rev 25784)
@@ -20,7 +20,7 @@
 
 
 final class GSUtils {
-       private GSUtils() {};
+       private GSUtils() { } // Prevent constructor calls.
 
        private static GsSession session = null;
 
@@ -28,7 +28,7 @@
                if (session == null || !session.isLoggedIn()) {
                        try {
                                session = new GsSession();
-                               if (!loginToGenomeSpace())
+                               if (session.isLoggedIn() && 
!loginToGenomeSpace())
                                        throw new GSClientException("failed to 
login!", null);
                        } catch (Exception e) {
                                throw new GSClientException("failed to login", 
e);

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to