Fixed a problem where AbstractSocketSslEchoTest doesn't close all channels when handshake fails.

This commit is contained in:
Trustin Lee 2008-11-16 16:22:27 +00:00
parent 5df6229d2a
commit feac0d6a3d

View File

@ -155,6 +155,9 @@ public abstract class AbstractSocketSslEchoTest {
hf.awaitUninterruptibly();
if (!hf.isSuccess()) {
logger.error("Handshake failed", hf.getCause());
sh.channel.close().awaitUninterruptibly();
ch.channel.close().awaitUninterruptibly();
sc.close().awaitUninterruptibly();
}
assertTrue(hf.isSuccess());