1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Don't automatically login() on connect()

if the connection was authenticated before.

Fixes SMACK-647.
This commit is contained in:
Florian Schmaus 2015-04-06 13:51:47 +02:00
parent b4694ec152
commit 6c637d5784
2 changed files with 6 additions and 13 deletions

View file

@ -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.
* <p>
* Listeners will be preserved from a previous connection.
* </p>
*
* @throws XMPPException if an error occurs on the XMPP protocol level.
* @throws SmackException if an error occurs somewhere else besides XMPP protocol level.