fix teardown order so close can do its thing

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1363349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2012-07-19 14:24:12 +00:00
parent 62a6e358c8
commit 6bec2aabb5
1 changed files with 2 additions and 3 deletions

View File

@ -105,12 +105,11 @@ public class AMQ2801Test
@After @After
public void tearDown() throws Exception { public void tearDown() throws Exception {
conn1.close();
conn2.close();
if (broker != null) { if (broker != null) {
broker.stop(); broker.stop();
} }
conn1.close();
conn2.close();
} }
private void produceMessages() throws Exception { private void produceMessages() throws Exception {