mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-09-27 18:29:35 +02:00
Handle AlreadyConnectedException in ReconnectionManager
Fixes SMACK-725.
This commit is contained in:
parent
e943bbbd91
commit
45b04800a4
|
@ -238,7 +238,11 @@ public class ReconnectionManager {
|
||||||
// Makes a reconnection attempt
|
// Makes a reconnection attempt
|
||||||
try {
|
try {
|
||||||
if (isReconnectionPossible(connection)) {
|
if (isReconnectionPossible(connection)) {
|
||||||
connection.connect();
|
try {
|
||||||
|
connection.connect();
|
||||||
|
} catch (SmackException.AlreadyConnectedException e) {
|
||||||
|
LOGGER.log(Level.FINER, "Connection was already connected on reconnection attempt", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// TODO Starting with Smack 4.2, connect() will no
|
// TODO Starting with Smack 4.2, connect() will no
|
||||||
// longer login automatically. So change this and the
|
// longer login automatically. So change this and the
|
||||||
|
|
Loading…
Reference in a new issue