mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
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:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user