No more awaitUninterruptible

This commit is contained in:
Trustin Lee 2009-06-30 11:16:45 +00:00
parent 78dbbe7661
commit 0d263b85e5

View File

@ -292,11 +292,9 @@ class HttpTunnelingClientSocketChannel extends AbstractChannel
if (setClosed()) {
// Send the end of chunk.
synchronized (writeLock) {
channel.write(HttpChunk.LAST_CHUNK).awaitUninterruptibly();
channel.write(HttpChunk.LAST_CHUNK).addListener(ChannelFutureListener.CLOSE);
}
closed = true;
channel.close();
}
}