Merged revision(s) 1312026 from activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x:
Make of copy of the temporary destinations that are being cleaned up when closing a Connection to avoid a race condition of modifying the list of temp destinations while it is being enumerated. Found that the AdvisoryConsumer monitor was creating a race condition while populating the internal temp destination list associated with a Connection so that the Connection member reference was not being set on the temp destination, and subsequently the temp destination would not be cleaned up when the Connection was closed.
Resolves AMQNET-378.
........

2 files changed