Fixed indentation

This commit is contained in:
Trustin Lee 2009-02-17 07:17:03 +00:00
parent 5281ef6aa7
commit 4bd06dfdb1

View File

@ -189,26 +189,23 @@ class HttpTunnelClientSocketChannel extends AbstractChannel
void reconnect() throws Exception { void reconnect() throws Exception {
if (closed) { if (closed) {
throw new IllegalStateException("channel closed"); throw new IllegalStateException("channel closed");
} }
if (reconnectLock.tryLock()) { if (reconnectLock.tryLock()) {
try { try {
awaitingInitialResponse = true; awaitingInitialResponse = true;
connectAndSendHeaders(true, remoteAddress); connectAndSendHeaders(true, remoteAddress);
} } finally {
finally { reconnectLock.unlock();
reconnectLock.unlock();
}
} }
else { } else {
try { try {
reconnectLock.lock(); reconnectLock.lock();
} } finally {
finally { reconnectLock.unlock();
reconnectLock.unlock();
}
} }
}
} }
public void closeSocket() { public void closeSocket() {
@ -258,7 +255,6 @@ class HttpTunnelClientSocketChannel extends AbstractChannel
nextChunkSize = -1; nextChunkSize = -1;
} }
} }
} }
@Override @Override