hornetq/hornetq — pull request #757 by FranciscoBorges (2013-01-04 11:12:13+00:00)
Title: HORNETQ-1102 Take the locks in the right order.

Fixes 2 dead locks (there could be more, need to spend more time reading the code...)