mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 07:22:07 +01:00
Handle AlreadyLoggedInException in ReconnectionManager
Fixes SMACK-725.
This commit is contained in:
parent
fb55b9065f
commit
e943bbbd91
1 changed files with 6 additions and 0 deletions
|
@ -250,6 +250,12 @@ public class ReconnectionManager {
|
||||||
// Successfully reconnected.
|
// Successfully reconnected.
|
||||||
attempts = 0;
|
attempts = 0;
|
||||||
}
|
}
|
||||||
|
catch (SmackException.AlreadyLoggedInException e) {
|
||||||
|
// This can happen if another thread concurrently triggers a reconnection
|
||||||
|
// and/or login. Obviously it should not be handled as a reconnection
|
||||||
|
// failure. See also SMACK-725.
|
||||||
|
LOGGER.log(Level.FINER, "Reconnection not required, was already logged in", e);
|
||||||
|
}
|
||||||
catch (SmackException | IOException | XMPPException e) {
|
catch (SmackException | IOException | XMPPException e) {
|
||||||
// Fires the failed reconnection notification
|
// Fires the failed reconnection notification
|
||||||
for (ConnectionListener listener : connection.connectionListeners) {
|
for (ConnectionListener listener : connection.connectionListeners) {
|
||||||
|
|
Loading…
Reference in a new issue