mirror of https://github.com/apache/activemq.git
[AMQ-8462] Remove double call to listConnectionStates during connection close
(cherry picked from commit 6a944a05d9
)
This commit is contained in:
parent
7a8d517436
commit
f1b37e0a4f
|
@ -1227,7 +1227,6 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
||||||
// from the broker.
|
// from the broker.
|
||||||
if (!broker.isStopped()) {
|
if (!broker.isStopped()) {
|
||||||
List<TransportConnectionState> connectionStates = listConnectionStates();
|
List<TransportConnectionState> connectionStates = listConnectionStates();
|
||||||
connectionStates = listConnectionStates();
|
|
||||||
for (TransportConnectionState cs : connectionStates) {
|
for (TransportConnectionState cs : connectionStates) {
|
||||||
cs.getContext().getStopping().set(true);
|
cs.getContext().getStopping().set(true);
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue