SPARK-1750: Spark should reconnect by default. (#190)

* Prevent exceptions from going unnoticed.

* SPARK-1750: Spark should reconnect by default.

This commit restored the automatic reconnection that's attempted
by Spark, when an XMPP connection unexpectedly fails. The commit
makes use of a construct offered by Smack (which was changed from
Smack 3 to 4).
This commit is contained in:
Guus der Kinderen
2016-08-15 12:21:20 +02:00
committed by wroot
parent 3276e65c07
commit dbc1dce49d

View File

@ -292,8 +292,9 @@ public class LoginDialog {
}
}
ReconnectionManager.setEnabledPerDefault( true );
// TODO These were used in Smack 3. Find Smack 4 alternative.
// config.setReconnectionAllowed(true);
// config.setRosterLoadedAtLogin(true);
// if(ModelUtil.hasLength(localPref.getTrustStorePath())) {
// config.setTruststorePath(localPref.getTrustStorePath());