Spark-1753: Don't be disconnected when receiving invalid stanzas (#155)

* SPARK-1751: Fixing thread ID with chat state notification.

* SPARK-1751: Stanzafilter in chat should not require full JID match.

* SPARK-1749 SPARK-1735 Restoring MUC participant list size and context menu.

* SPARK-1753: Do not disconnect when receiving invalid data.
This commit is contained in:
Guus der Kinderen
2016-05-10 18:38:17 +02:00
committed by wroot
parent befa7500cd
commit 6822f52cd2
2 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@ import org.jivesoftware.resource.Default;
import org.jivesoftware.resource.Res;
import org.jivesoftware.resource.SparkRes;
import org.jivesoftware.smack.*;
import org.jivesoftware.smack.parsing.ExceptionLoggingCallback;
import org.jivesoftware.smack.proxy.ProxyInfo;
import org.jivesoftware.smack.sasl.javax.SASLExternalMechanism;
import org.jivesoftware.smack.tcp.XMPPTCPConnection;
@ -1030,6 +1031,7 @@ public class LoginDialog {
// Get connection
try {
connection = new XMPPTCPConnection(retrieveConnectionConfiguration());
connection.setParsingExceptionCallback( new ExceptionLoggingCallback() );
//If we want to use the debug version of smack, we have to check if
//we are on the dispatch thread because smack will create an UI
if (localPref.isDebuggerEnabled()) {