diff --git a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java index cd270adfd..92bb82741 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/AbstractXMPPConnection.java @@ -332,11 +332,11 @@ public abstract class AbstractXMPPConnection implements XMPPConnection { public abstract boolean isUsingCompression(); /** - * Establishes a connection to the XMPP server and performs an automatic login - * only if the previous connection state was logged (authenticated). It basically + * Establishes a connection to the XMPP server. It basically * creates and maintains a connection to the server. *

* Listeners will be preserved from a previous connection. + *

* * @throws XMPPException if an error occurs on the XMPP protocol level. * @throws SmackException if an error occurs somewhere else besides XMPP protocol level. diff --git a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java index cf5d56414..ac512a3b1 100644 --- a/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java +++ b/smack-tcp/src/main/java/org/jivesoftware/smack/tcp/XMPPTCPConnection.java @@ -803,12 +803,12 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { } /** - * Establishes a connection to the XMPP server and performs an automatic login - * only if the previous connection state was logged (authenticated). It basically - * creates and maintains a socket connection to the server.

- *

+ * Establishes a connection to the XMPP server. It basically + * creates and maintains a socket connection to the server. + *

* Listeners will be preserved from a previous connection if the reconnection * occurs after an abrupt termination. + *

* * @throws XMPPException if an error occurs while trying to establish the connection. * @throws SmackException @@ -831,13 +831,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { // Make note of the fact that we're now connected. connected = true; callConnectionConnectedListener(); - - // Automatically makes the login if the user was previously connected successfully - // to the server and the connection was terminated abruptly - if (wasAuthenticated) { - login(); - notifyReconnection(); - } } /**