From 55433d1cf3bcd94333912927d6cf26b81b9dec62 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Fri, 5 Nov 2004 05:25:52 +0000 Subject: [PATCH] Code formatting. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2410 b35dd754-fafc-0310-a699-88a17e54d16e --- .../org/jivesoftware/smack/XMPPConnection.java | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/source/org/jivesoftware/smack/XMPPConnection.java b/source/org/jivesoftware/smack/XMPPConnection.java index 450b64c3d..70cb7ffd9 100644 --- a/source/org/jivesoftware/smack/XMPPConnection.java +++ b/source/org/jivesoftware/smack/XMPPConnection.java @@ -772,28 +772,23 @@ public class XMPPConnection { // An exception occurred in setting up the connection. Make sure we shut down the // readers and writers and close the socket. - if (packetWriter != null) - { + if (packetWriter != null) { try { packetWriter.shutdown(); } catch (Throwable ignore) { } packetWriter = null; } - if (packetReader != null) - { + if (packetReader != null) { try { packetReader.shutdown(); } catch (Throwable ignore) { } packetReader = null; } - if (reader != null) - { + if (reader != null) { try { reader.close(); } catch (Throwable ignore) { } reader = null; } - if (writer != null) - { + if (writer != null) { try { writer.close(); } catch (Throwable ignore) { } writer = null; } - if (socket != null) - { + if (socket != null) { try { socket.close(); } catch (Exception e) { } socket = null; } @@ -817,4 +812,4 @@ public class XMPPConnection { listeners[i].connectionEstablished(connection); } } -} +} \ No newline at end of file