Skip to content

Commit

Permalink
AMQP-800: LocalizedQueueConnectionFactory Fix
Browse files Browse the repository at this point in the history
JIRA: https://jira.spring.io/browse/AMQP-800

The `LocalizedQueueConnectionFactory` incorrectly destroyed the injected default
connection factory. It should only destroy factories that it creates.

**cherry-pick to 1.7.x**
  • Loading branch information
garyrussell authored and artembilan committed Feb 22, 2018
1 parent fecd0ba commit f32b358
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,6 @@ public void destroy() throws Exception {
((DisposableBean) connectionFactory).destroy();
}
}
if (this.defaultConnectionFactory instanceof DisposableBean) {
((DisposableBean) this.defaultConnectionFactory).destroy();
}
}

}

0 comments on commit f32b358

Please sign in to comment.