Revision: 40829
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40829&view=rev
Author:   davidloman
Date:     2010-09-29 15:20:02 +0000 (Wed, 29 Sep 2010)

Log Message:
-----------
Simplify disconnect logic in SessionManager.  SM will not call 
portal::disconnect.

Modified Paths:
--------------
    rt^3/trunk/src/GS/SessionManager.cxx

Modified: rt^3/trunk/src/GS/SessionManager.cxx
===================================================================
--- rt^3/trunk/src/GS/SessionManager.cxx        2010-09-29 15:17:06 UTC (rev 
40828)
+++ rt^3/trunk/src/GS/SessionManager.cxx        2010-09-29 15:20:02 UTC (rev 
40829)
@@ -128,15 +128,15 @@
        switch(type) {
        case NEWSESSIONREQ:
                this->handleNewSessionReqMsg((NewSessionReqMsg*)msg);
-               break;
+               return true;
        case SESSIONINFO:
                //Dunno why someone would be sending the GS this message!
-               break;
+               return true;
        case DISCONNECTREQ:
                this->handleDisconnectReqMsg((TypeOnlyMsg*)msg);
-               break;
-
+               return true;
        }
+       return false;
 }
 
 /*
@@ -194,13 +194,8 @@
        }
 
        Session* s = this->getSession(origin);
-
-       if (s == NULL) {
-               //no mapping.  Odd.  Kick 'em.
-               origin->disconnect();
-       }
-
        this->remCache(s);
+
 }
 
 // Local Variables: ***


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to