mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +01:00
SMACK-295: Fire reconnectionSuccessful event when session is established
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11652 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
5cb76891ba
commit
5f50f087ac
2 changed files with 3 additions and 3 deletions
|
@ -610,7 +610,7 @@ public class XMPPConnection extends Connection {
|
||||||
listener.connectionCreated(this);
|
listener.connectionCreated(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if (!wasAuthenticated) {
|
||||||
packetReader.notifyReconnection();
|
packetReader.notifyReconnection();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -823,7 +823,6 @@ public class XMPPConnection extends Connection {
|
||||||
// Verify certificate presented by the server
|
// Verify certificate presented by the server
|
||||||
context.init(kms,
|
context.init(kms,
|
||||||
new javax.net.ssl.TrustManager[]{new ServerTrustManager(getServiceName(), config)},
|
new javax.net.ssl.TrustManager[]{new ServerTrustManager(getServiceName(), config)},
|
||||||
//new javax.net.ssl.TrustManager[]{new OpenTrustManager()},
|
|
||||||
new java.security.SecureRandom());
|
new java.security.SecureRandom());
|
||||||
Socket plain = socket;
|
Socket plain = socket;
|
||||||
// Secure the plain connection
|
// Secure the plain connection
|
||||||
|
@ -995,6 +994,7 @@ public class XMPPConnection extends Connection {
|
||||||
login(config.getUsername(), config.getPassword(),
|
login(config.getUsername(), config.getPassword(),
|
||||||
config.getResource());
|
config.getResource());
|
||||||
}
|
}
|
||||||
|
packetReader.notifyReconnection();
|
||||||
}
|
}
|
||||||
catch (XMPPException e) {
|
catch (XMPPException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
Loading…
Reference in a new issue