Code formatting.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2410 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2004-11-05 05:25:52 +00:00 committed by matt
parent e1f47c181f
commit 55433d1cf3
1 changed files with 6 additions and 11 deletions

View File

@ -772,28 +772,23 @@ public class XMPPConnection {
// An exception occurred in setting up the connection. Make sure we shut down the // An exception occurred in setting up the connection. Make sure we shut down the
// readers and writers and close the socket. // readers and writers and close the socket.
if (packetWriter != null) if (packetWriter != null) {
{
try { packetWriter.shutdown(); } catch (Throwable ignore) { } try { packetWriter.shutdown(); } catch (Throwable ignore) { }
packetWriter = null; packetWriter = null;
} }
if (packetReader != null) if (packetReader != null) {
{
try { packetReader.shutdown(); } catch (Throwable ignore) { } try { packetReader.shutdown(); } catch (Throwable ignore) { }
packetReader = null; packetReader = null;
} }
if (reader != null) if (reader != null) {
{
try { reader.close(); } catch (Throwable ignore) { } try { reader.close(); } catch (Throwable ignore) { }
reader = null; reader = null;
} }
if (writer != null) if (writer != null) {
{
try { writer.close(); } catch (Throwable ignore) { } try { writer.close(); } catch (Throwable ignore) { }
writer = null; writer = null;
} }
if (socket != null) if (socket != null) {
{
try { socket.close(); } catch (Exception e) { } try { socket.close(); } catch (Exception e) { }
socket = null; socket = null;
} }
@ -817,4 +812,4 @@ public class XMPPConnection {
listeners[i].connectionEstablished(connection); listeners[i].connectionEstablished(connection);
} }
} }
} }