Fixed compilation error

This commit is contained in:
Trustin Lee 2009-10-22 10:22:24 +00:00
parent 2ac4719fae
commit bf3da2d0e3

View File

@ -23,7 +23,6 @@ import java.nio.channels.NotYetConnectedException;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLEngine;
import javax.net.ssl.SSLException;
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.ChannelBuffers;
@ -184,13 +183,7 @@ class HttpTunnelingClientSocketChannel extends AbstractChannel
SslHandler sslHandler = new SslHandler(engine);
realChannel.getPipeline().addFirst("ssl", sslHandler);
try {
sslHandshakeFuture = sslHandler.handshake(realChannel);
} catch (SSLException e) {
future.setFailure(e);
fireExceptionCaught(virtualChannel, e);
return;
}
sslHandshakeFuture = sslHandler.handshake(realChannel);
}
// Send the HTTP request.