Make sure all resources are disposed before try to shutdown executor

This commit is contained in:
Norman Maurer 2012-04-01 20:56:13 +02:00
parent f135804b9b
commit 7dc2d8eb77

View File

@ -105,7 +105,6 @@ public class SctpMultiStreamingEchoTest {
cc.write(sctpFrame);
}
while (sh.counter < sctpFrames.length) {
Thread.sleep(5);
}
@ -116,10 +115,10 @@ public class SctpMultiStreamingEchoTest {
assertEquals(sctpFrames.length, sh.counter);
assertEquals(sctpFrames.length, ch.counter);
sh.channel.close().awaitUninterruptibly();
ch.channel.close().awaitUninterruptibly();
sc.close().awaitUninterruptibly();
if (sh.exception.get() != null && !(sh.exception.get() instanceof IOException)) {
throw sh.exception.get();