Skip to content

Commit

Permalink
Make sure all resources are disposed before try to shutdown executor
Browse files Browse the repository at this point in the history
  • Loading branch information
normanmaurer committed Apr 1, 2012
1 parent f135804 commit 7dc2d8e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public void testMultiStreamingEcho() throws Throwable {
cc.write(sctpFrame);
}


while (sh.counter < sctpFrames.length) {
Thread.sleep(5);
}
Expand All @@ -116,10 +115,10 @@ public void testMultiStreamingEcho() throws Throwable {
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();
Expand Down

0 comments on commit 7dc2d8e

Please sign in to comment.