brooklyncentral/brooklyn — pull request #1361 by aledsage (2014-05-03 11:45:54+00:00)
Title: Fix ServiceRestarter and ServiceReplacer listener thread

- Previously `RestarterPolicy` called entity.restart inside the event-listener thread. That caused all other events for that entity's subscriptions to be queued until that entity's single event handler thread was free again.
- Particularly bad if service-up is triggered by an event-subscription, so that never happens causing entity.restart to fail!

Same pattern in `ServiceReplacer`.