mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-23 06:42:05 +01:00
SMACK-369 remove try/catch block in XMPPConnection.connect()
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_1@13660 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
0951420d9c
commit
8e10e5f374
1 changed files with 6 additions and 12 deletions
|
@ -1028,21 +1028,15 @@ public class XMPPConnection extends Connection {
|
||||||
// to the server and the connection was terminated abruptly
|
// to the server and the connection was terminated abruptly
|
||||||
if (connected && wasAuthenticated) {
|
if (connected && wasAuthenticated) {
|
||||||
// Make the login
|
// Make the login
|
||||||
try {
|
|
||||||
if (isAnonymous()) {
|
if (isAnonymous()) {
|
||||||
// Make the anonymous login
|
// Make the anonymous login
|
||||||
loginAnonymously();
|
loginAnonymously();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
login(config.getUsername(), config.getPassword(),
|
login(config.getUsername(), config.getPassword(), config.getResource());
|
||||||
config.getResource());
|
|
||||||
}
|
}
|
||||||
notifyReconnection();
|
notifyReconnection();
|
||||||
}
|
}
|
||||||
catch (XMPPException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue