Made sure all exceptions are printed (2nd try)

This commit is contained in:
Trustin Lee 2008-11-16 13:30:42 +00:00
parent b29b5a8289
commit 4cd9105eeb

View File

@ -248,10 +248,9 @@ public abstract class AbstractSocketSslEchoTest {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e)
throws Exception {
if (exception.compareAndSet(null, e.getCause())) {
exception.compareAndSet(null, e.getCause());
e.getCause().printStackTrace();
e.getChannel().close();
}
}
}
}