mirror of https://github.com/apache/activemq.git
https://issues.apache.org/activemq/browse/AMQ-2677 - starting connection in a pool
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@929488 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
45cb6a0c75
commit
b94342f604
|
@ -90,7 +90,12 @@ public class ConnectionPool {
|
|||
|
||||
public void start() throws JMSException {
|
||||
if (started.compareAndSet(false, true)) {
|
||||
connection.start();
|
||||
try {
|
||||
connection.start();
|
||||
} catch (JMSException e) {
|
||||
started.set(false);
|
||||
throw(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue