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

Call connection created listeners in constructor

Fixes SMACK-638.
This commit is contained in:
Florian Schmaus 2015-03-17 12:06:55 +01:00
parent 5188c6f934
commit f410ece468
3 changed files with 4 additions and 21 deletions

View file

@ -31,7 +31,6 @@ import org.jivesoftware.smack.SmackException.NotConnectedException;
import org.jivesoftware.smack.SmackException.ConnectionException;
import org.jivesoftware.smack.XMPPException.StreamErrorException;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.ConnectionCreationListener;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.packet.Element;
import org.jivesoftware.smack.packet.IQ;
@ -435,9 +434,6 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
connected = true;
if (isFirstInitialization) {
isFirstInitialization = false;
for (ConnectionCreationListener listener : getConnectionCreationListeners()) {
listener.connectionCreated(XMPPBOSHConnection.this);
}
}
else {
if (wasAuthenticated) {