Author: berndf
Date: Thu Mar 11 06:16:52 2010
New Revision: 921700

URL: http://svn.apache.org/viewvc?rev=921700&view=rev
Log:
VYSPER-185: previous commit broke a whole number of tests: temp fix

Modified:
    
mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java

Modified: 
mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java
URL: 
http://svn.apache.org/viewvc/mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java?rev=921700&r1=921699&r2=921700&view=diff
==============================================================================
--- 
mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java
 (original)
+++ 
mina/sandbox/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/server/AbstractSessionContext.java
 Thu Mar 11 06:16:52 2010
@@ -124,8 +124,7 @@ public abstract class AbstractSessionCon
         }
 
                if (terminationCause == SessionTerminationCause.CLIENT_BYEBYE ||
-            terminationCause == SessionTerminationCause.CONNECTION_ABORT ||
-            terminationCause == SessionTerminationCause.STREAM_ERROR) {
+            terminationCause == SessionTerminationCause.CONNECTION_ABORT) {
             Stanza unavailableStanza = 
StanzaBuilder.createUnavailablePresenceStanza(null, terminationCause);
             StanzaHandler handler = 
serverRuntimeContext.getHandler(unavailableStanza);
             try {
@@ -135,6 +134,9 @@ public abstract class AbstractSessionCon
             }
         } else if (terminationCause == 
SessionTerminationCause.SERVER_SHUTDOWN) {
             // do nothing
+        } else if (terminationCause == SessionTerminationCause.STREAM_ERROR) {
+            // TODO find a solution for informing the contacts without 
breaking test cases
+            // but do nothing for now
         } else {
             throw new IllegalArgumentException("endSession() not implemented 
for termination cause");
         }


Reply via email to