diff options
| author | Bhupendra Bhusman Bhardwaj <bhupendrab@apache.org> | 2007-02-15 14:25:49 +0000 |
|---|---|---|
| committer | Bhupendra Bhusman Bhardwaj <bhupendrab@apache.org> | 2007-02-15 14:25:49 +0000 |
| commit | 116051b0c8f00e413c2641463d0715327752868e (patch) | |
| tree | 4b62bf2854a4bf3e331e9602a8dfb9c34ff85ba7 /qpid/java | |
| parent | dc0f22a698fa7a8fa330a426ceee69f289d14f81 (diff) | |
| download | qpid-python-116051b0c8f00e413c2641463d0715327752868e.tar.gz | |
If there is any error in closing the connection, then also the thread setup should be removed
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@507938 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/perftests/src/test/java/org/apache/qpid/ping/PingTestPerf.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qpid/java/perftests/src/test/java/org/apache/qpid/ping/PingTestPerf.java b/qpid/java/perftests/src/test/java/org/apache/qpid/ping/PingTestPerf.java index 9650a78fda..2057f09bc7 100644 --- a/qpid/java/perftests/src/test/java/org/apache/qpid/ping/PingTestPerf.java +++ b/qpid/java/perftests/src/test/java/org/apache/qpid/ping/PingTestPerf.java @@ -237,14 +237,16 @@ public class PingTestPerf extends AsymptoticTestCase implements TestThreadAware perThreadSetup._pingClient.close();
}
}
-
- // Ensure the per thread fixture is reclaimed.
- threadSetup.remove();
}
catch (JMSException e)
{
_logger.warn("There was an exception during per thread tear down.");
}
+ finally
+ {
+ // Ensure the per thread fixture is reclaimed.
+ threadSetup.remove();
+ }
}
protected static class PerThreadSetup
|
