Fixed indentation
This commit is contained in:
parent
5281ef6aa7
commit
4bd06dfdb1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user