From 8e10e5f37494bd36238d2622686dc0eecad6a4bb Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 17 May 2013 22:05:24 +0000 Subject: [PATCH] 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 --- .../org/jivesoftware/smack/XMPPConnection.java | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/source/org/jivesoftware/smack/XMPPConnection.java b/source/org/jivesoftware/smack/XMPPConnection.java index 2c75e208a..3552d734b 100644 --- a/source/org/jivesoftware/smack/XMPPConnection.java +++ b/source/org/jivesoftware/smack/XMPPConnection.java @@ -1028,20 +1028,14 @@ public class XMPPConnection extends Connection { // to the server and the connection was terminated abruptly if (connected && wasAuthenticated) { // Make the login - try { - if (isAnonymous()) { - // Make the anonymous login - loginAnonymously(); - } - else { - login(config.getUsername(), config.getPassword(), - config.getResource()); - } - notifyReconnection(); + if (isAnonymous()) { + // Make the anonymous login + loginAnonymously(); } - catch (XMPPException e) { - e.printStackTrace(); + else { + login(config.getUsername(), config.getPassword(), config.getResource()); } + notifyReconnection(); } }