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:
parent
5188c6f934
commit
f410ece468
3 changed files with 4 additions and 21 deletions
|
@ -19,7 +19,6 @@ package org.jivesoftware.smack.tcp;
|
|||
import org.jivesoftware.smack.AbstractXMPPConnection;
|
||||
import org.jivesoftware.smack.ConnectionConfiguration;
|
||||
import org.jivesoftware.smack.ConnectionConfiguration.SecurityMode;
|
||||
import org.jivesoftware.smack.ConnectionCreationListener;
|
||||
import org.jivesoftware.smack.StanzaListener;
|
||||
import org.jivesoftware.smack.SmackConfiguration;
|
||||
import org.jivesoftware.smack.SmackException;
|
||||
|
@ -633,13 +632,6 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
// Start the packet reader. The startup() method will block until we
|
||||
// get an opening stream packet back from server
|
||||
packetReader.init();
|
||||
|
||||
if (isFirstInitialization) {
|
||||
// Notify listeners that a new connection has been established
|
||||
for (ConnectionCreationListener listener : getConnectionCreationListeners()) {
|
||||
listener.connectionCreated(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void initReaderAndWriter() throws IOException {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue