From 4bd06dfdb12c20351930e2f8ee8b348f66639143 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Tue, 17 Feb 2009 07:17:03 +0000 Subject: [PATCH] Fixed indentation --- .../http/HttpTunnelClientSocketChannel.java | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelClientSocketChannel.java b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelClientSocketChannel.java index efd3dbf85e..cf26233419 100644 --- a/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelClientSocketChannel.java +++ b/src/main/java/org/jboss/netty/channel/socket/http/HttpTunnelClientSocketChannel.java @@ -189,26 +189,23 @@ class HttpTunnelClientSocketChannel extends AbstractChannel void reconnect() throws Exception { if (closed) { - throw new IllegalStateException("channel closed"); - } - if (reconnectLock.tryLock()) { - try { - awaitingInitialResponse = true; + throw new IllegalStateException("channel closed"); + } + if (reconnectLock.tryLock()) { + try { + awaitingInitialResponse = true; - connectAndSendHeaders(true, remoteAddress); - } - finally { - reconnectLock.unlock(); - } + connectAndSendHeaders(true, remoteAddress); + } finally { + reconnectLock.unlock(); } - else { - try { - reconnectLock.lock(); - } - finally { - reconnectLock.unlock(); - } + } else { + try { + reconnectLock.lock(); + } finally { + reconnectLock.unlock(); } + } } public void closeSocket() { @@ -258,7 +255,6 @@ class HttpTunnelClientSocketChannel extends AbstractChannel nextChunkSize = -1; } } - } @Override