mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-3040 - ConnectionState.getTempDestinations() typo
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1061299 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e511e76d4f
commit
53ea4caa20
|
@ -726,7 +726,7 @@ public class TransportConnection implements Connection, Task, CommandVisitor {
|
|||
}
|
||||
}
|
||||
// Cascade the connection stop to temp destinations.
|
||||
for (Iterator iter = cs.getTempDesinations().iterator(); iter.hasNext();) {
|
||||
for (Iterator iter = cs.getTempDestinations().iterator(); iter.hasNext();) {
|
||||
DestinationInfo di = (DestinationInfo) iter.next();
|
||||
try {
|
||||
broker.removeDestination(cs.getContext(), di.getDestination(), 0);
|
||||
|
|
|
@ -119,7 +119,7 @@ public class ConnectionState {
|
|||
return sessions.keySet();
|
||||
}
|
||||
|
||||
public List<DestinationInfo> getTempDesinations() {
|
||||
public List<DestinationInfo> getTempDestinations() {
|
||||
return tempDestinations;
|
||||
}
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ public class ConnectionStateTracker extends CommandVisitorAdapter {
|
|||
protected void restoreTempDestinations(Transport transport, ConnectionState connectionState)
|
||||
throws IOException {
|
||||
// Restore the connection's temp destinations.
|
||||
for (Iterator iter2 = connectionState.getTempDesinations().iterator(); iter2.hasNext();) {
|
||||
for (Iterator iter2 = connectionState.getTempDestinations().iterator(); iter2.hasNext();) {
|
||||
transport.oneway((DestinationInfo)iter2.next());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue